testcentricity_web 0.9.9.6 → 0.9.9.7
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 +15 -12
- 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: 2c71416cfd99a10dea2dc2be6f6839d84a137c1e
|
4
|
+
data.tar.gz: 60cc79fe28da6e8d69c52e23068432073fb16569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ||=
|
314
|
-
attributes = [:
|
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
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
when :
|
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 = "
|
356
|
-
trigger = "#{@parent.get_locator}#{trigger}" if @context == :section && !@parent.get_locator.nil?
|
357
|
-
first(
|
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
|
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.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-
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|