testcentricity_web 0.9.9.8 → 0.9.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testcentricity_web/ui_elements_helper.rb +10 -2
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8074ac177140c32d68c3cf0f64a6281d50355896
|
4
|
+
data.tar.gz: 0964da26f8fb21a0f470b6463f0988a710869e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d9e2d407f1efc50e52a295d91ad873f22e92bec3b0e04f6e58cfbf6c7556607914d627524b81ab0e81a44ab87f2ed0db167ff3ebc06ec9094308965b11b1dd
|
7
|
+
data.tar.gz: d5c97dcfd01e70384e32e1e590817af0cb57f4e6fed07425d4bcd4320da87a00010027a6bcce0cbf41ecda7974e65e7b29d4d8813a3b49377ebcb541018edb7a
|
@@ -310,8 +310,8 @@ module TestCentricity
|
|
310
310
|
|
311
311
|
def find_object(visible = true)
|
312
312
|
@alt_locator.nil? ? locator = @locator : locator = @alt_locator
|
313
|
-
tries ||=
|
314
|
-
attributes = [:id, :xpath_css, :css_xpath, :xpath, :css]
|
313
|
+
tries ||= 6
|
314
|
+
attributes = [:id, :xpath_ignore_parent, :css_ignore_parent, :xpath_css, :css_xpath, :xpath, :css]
|
315
315
|
type = attributes[tries]
|
316
316
|
if @context == :section && !@parent.get_locator.nil?
|
317
317
|
parent_locator = @parent.get_locator
|
@@ -323,11 +323,19 @@ module TestCentricity
|
|
323
323
|
parent_locator = parent_locator.gsub('|', '')
|
324
324
|
obj = page.find(:xpath, "#{parent_locator}#{locator}", :wait => 0.01, :visible => visible)
|
325
325
|
when :css_xpath
|
326
|
+
type = :xpath
|
326
327
|
parent_locator = parent_locator.gsub('|', ' ')
|
327
328
|
obj = page.find(:css, parent_locator, :wait => 0.01).find(:xpath, locator, :wait => 0.01, :visible => visible)
|
328
329
|
when :xpath_css
|
330
|
+
type = :css
|
329
331
|
parent_locator = parent_locator.gsub('|', ' ')
|
330
332
|
obj = page.find(:xpath, parent_locator, :wait => 0.01).find(:css, locator, :wait => 0.01, :visible => visible)
|
333
|
+
when :css_ignore_parent
|
334
|
+
type = :css
|
335
|
+
obj = page.find(:css, locator, :wait => 0.01, :visible => visible)
|
336
|
+
when :xpath_ignore_parent
|
337
|
+
type = :xpath
|
338
|
+
obj = page.find(:xpath, locator, :wait => 0.01, :visible => visible)
|
331
339
|
end
|
332
340
|
else
|
333
341
|
obj = page.find(type, locator, :wait => 0.01, :visible => visible)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.9.
|
4
|
+
version: 0.9.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|