testcentricity_web 2.1.8.3 → 2.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8189476c44eac8fb1dfd4373aea36aaefa1e088
|
4
|
+
data.tar.gz: 4dc3de8088f6744c245401ae24f0c1cc442cb2d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4469ac8503ce95dd5ed4f873f39c18825e9bda366cd12a631c37b869979f392cf1ecd67c61c58a5e0cee938eb7de64e3bc3dc05a5b817971c63fdb2067d7862
|
7
|
+
data.tar.gz: 14b58153a047d2bed28977f8e57cc65abe9bc317a7bcd964a9295e381d0d50a7b04bcffa9bdfe39deed7d021d9ab2aa54e27ceeb9f22f202d76bbb97b8722966
|
data/README.md
CHANGED
@@ -65,6 +65,11 @@ use the [parallel_tests gem](https://github.com/grosser/parallel_tests) to decre
|
|
65
65
|
|
66
66
|
|
67
67
|
## What's Fixed
|
68
|
+
###Version 2.1.9
|
69
|
+
|
70
|
+
* Fixed bug in `SelectList.choose_option`, `SelectList.get_options`, `SelectList.get_option_count`, and `SelectList.get_selected_option` methods which
|
71
|
+
did not recognize grouped option in Chosen list objects.
|
72
|
+
|
68
73
|
###Version 2.1.6
|
69
74
|
|
70
75
|
* Fixed bug in `TestCentricity::WebDriverConnect.set_webdriver_path` method that was failing to set the path to the appropriate chromedriver file for OS X
|
@@ -42,11 +42,6 @@ module TestCentricity
|
|
42
42
|
assert_equal(expected, actual, "Expected list #{object_ref_message} to be #{expected} but found #{actual}")
|
43
43
|
end
|
44
44
|
|
45
|
-
def click_item(row)
|
46
|
-
list_item = get_list_row_locator(row)
|
47
|
-
list_item.click
|
48
|
-
end
|
49
|
-
|
50
45
|
def get_list_row_locator(row)
|
51
46
|
"#{@locator}/#{@list_item}[#{row}]"
|
52
47
|
end
|
@@ -41,13 +41,13 @@ module TestCentricity
|
|
41
41
|
obj, = find_element
|
42
42
|
object_not_found_exception(obj, nil)
|
43
43
|
obj.click
|
44
|
-
if first(:css, '
|
44
|
+
if first(:css, "li[class*='active-result']")
|
45
45
|
if option.is_a?(Array)
|
46
46
|
option.each do |item|
|
47
|
-
page.find(:css, '
|
47
|
+
page.find(:css, "li[class*='active-result']", text: item.strip).click
|
48
48
|
end
|
49
49
|
else
|
50
|
-
first(:css, '
|
50
|
+
first(:css, "li[class*='active-result']", text: option).click
|
51
51
|
end
|
52
52
|
else
|
53
53
|
if option.is_a?(Array)
|
@@ -70,8 +70,8 @@ module TestCentricity
|
|
70
70
|
def get_options
|
71
71
|
obj, = find_element
|
72
72
|
object_not_found_exception(obj, nil)
|
73
|
-
if first(:css, '
|
74
|
-
obj.all('
|
73
|
+
if first(:css, "li[class*='active-result']")
|
74
|
+
obj.all("li[class*='active-result']").collect(&:text)
|
75
75
|
else
|
76
76
|
obj.all(@list_item).collect(&:text)
|
77
77
|
end
|
@@ -89,8 +89,8 @@ module TestCentricity
|
|
89
89
|
def get_option_count
|
90
90
|
obj, = find_element
|
91
91
|
object_not_found_exception(obj, nil)
|
92
|
-
if first(:css, '
|
93
|
-
obj.all('
|
92
|
+
if first(:css, "li[class*='active-result']")
|
93
|
+
obj.all("li[class*='active-result']").count
|
94
94
|
else
|
95
95
|
obj.all(@list_item).count
|
96
96
|
end
|
@@ -115,8 +115,8 @@ module TestCentricity
|
|
115
115
|
def get_selected_option
|
116
116
|
obj, = find_element
|
117
117
|
object_not_found_exception(obj, nil)
|
118
|
-
if first(:css, '
|
119
|
-
obj.first("
|
118
|
+
if first(:css, "li[class*='active-result']")
|
119
|
+
obj.first(:css, "li[class*='result-selected']").text
|
120
120
|
else
|
121
121
|
obj.first(@selected_item).text
|
122
122
|
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: 2.1.
|
4
|
+
version: 2.1.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: 2017-11-
|
11
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|