testcentricity_web 0.9.9.6 → 0.9.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a8bd2fd67da417f7f424518526af6d4faf05466
4
- data.tar.gz: 8df7b847a45ef682c8aa3dbcb2d76dd1022df0f2
3
+ metadata.gz: 2c71416cfd99a10dea2dc2be6f6839d84a137c1e
4
+ data.tar.gz: 60cc79fe28da6e8d69c52e23068432073fb16569
5
5
  SHA512:
6
- metadata.gz: c7a7d20769831228e9b053b48dac1e915de38c5cba58ec235759fbefdcde68d45653cdd4a22f1dc0184a171159157aae23d1a51e4997bd1c5e276cbf56b04ddd
7
- data.tar.gz: 1532fd798b5a8093e60400014485ed7eacdd59ec4d65171e71e0a4306af18cc242b083f8baec355d31cac7692b0f390df947669a9e07f9190e73b976962e967e
6
+ metadata.gz: 2368e5897e8f191883d036c34eb9a3fef18700aa60d63e690622d70a4e76ce068f510e9fcabf46c76ff6d70460dd8c3ac20f05da03a0385ff44dbd286192d060
7
+ data.tar.gz: 94c4fc2a6d9c59d04b1548de667d73c97170983f4816fd9b3c9bd1b287fc898facbebcda560fda1c692e06142a8d1b9ba3c4b7e91f515e8962cf9087638064c2
@@ -310,21 +310,24 @@ module TestCentricity
310
310
 
311
311
  def find_object(visible = true)
312
312
  @alt_locator.nil? ? locator = @locator : locator = @alt_locator
313
- tries ||= 3
314
- attributes = [:name, :id, :xpath, :css]
313
+ tries ||= 4
314
+ attributes = [:id, :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
318
318
  case type
319
- when :css
320
- parent_locator = parent_locator.gsub('|', ' ')
321
- obj = page.find(:css, parent_locator, :wait => 0.01).find(:css, locator, :wait => 0.01, :visible => visible)
322
- when :xpath
323
- parent_locator = parent_locator.gsub('|', '')
324
- obj = page.find(:xpath, "#{parent_locator}#{locator}", :wait => 0.01, :visible => visible)
325
- when :id
319
+ when :css
320
+ parent_locator = parent_locator.gsub('|', ' ')
321
+ obj = page.find(:css, parent_locator, :wait => 0.01).find(:css, locator, :wait => 0.01, :visible => visible)
322
+ when :xpath
323
+ parent_locator = parent_locator.gsub('|', '')
324
+ obj = page.find(:xpath, "#{parent_locator}#{locator}", :wait => 0.01, :visible => visible)
325
+ when :css_xpath
326
326
  parent_locator = parent_locator.gsub('|', ' ')
327
327
  obj = page.find(:css, parent_locator, :wait => 0.01).find(:xpath, locator, :wait => 0.01, :visible => visible)
328
+ when :xpath_css
329
+ parent_locator = parent_locator.gsub('|', ' ')
330
+ obj = page.find(:xpath, parent_locator, :wait => 0.01).find(:css, locator, :wait => 0.01, :visible => visible)
328
331
  end
329
332
  else
330
333
  obj = page.find(type, locator, :wait => 0.01, :visible => visible)
@@ -352,9 +355,9 @@ module TestCentricity
352
355
  obj, _ = find_element
353
356
  object_not_found_exception(obj, 'Siebel object')
354
357
  trigger_name = obj.native.attribute('aria-describedby').strip
355
- trigger = "//span[@id='#{trigger_name}']"
356
- trigger = "#{@parent.get_locator}#{trigger}" if @context == :section && !@parent.get_locator.nil?
357
- first(:xpath, trigger).click
358
+ trigger = "span##{trigger_name}"
359
+ trigger = "#{@parent.get_locator} #{trigger}" if @context == :section && !@parent.get_locator.nil?
360
+ first(trigger).click
358
361
  end
359
362
  end
360
363
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.9.9.6'
2
+ VERSION = '0.9.9.7'
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.6
4
+ version: 0.9.9.7
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-25 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler