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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29f9ccbbaeaff5d2cd2d9e18c5dcb23eac4312d7
4
- data.tar.gz: 94322548cb6730c84dea5775f8d1ac7f639f50c3
3
+ metadata.gz: 8074ac177140c32d68c3cf0f64a6281d50355896
4
+ data.tar.gz: 0964da26f8fb21a0f470b6463f0988a710869e7a
5
5
  SHA512:
6
- metadata.gz: 71c08deb536ab8d8f513355ac5e8acd9cc2c569609c6cd871ad0dc5a455c50975c20afe7e15598e2c77127a6fbf03f1321e9c277b2bdab94d50b642f47c79569
7
- data.tar.gz: 709f265a8e6d7d05bfb8840ba32ef90821b0340823fefa02979072eb690284d82c791242b825629f9b6270bac7f0f47c9b72cd61ccecc33474287fe89e315e3c
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 ||= 4
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)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.9.9.8'
2
+ VERSION = '0.9.9.9'
3
3
  end
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.8
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-27 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler