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: d9ce21fa3ed070540857f13c91d4e26737fafbb4
4
- data.tar.gz: ec4148037d084b344a7b2f01fef0c6aaf1b97169
3
+ metadata.gz: b8189476c44eac8fb1dfd4373aea36aaefa1e088
4
+ data.tar.gz: 4dc3de8088f6744c245401ae24f0c1cc442cb2d9
5
5
  SHA512:
6
- metadata.gz: fe011d194b633020d0d3f5745e37984c1ca46f386e4c993b469bfd21afc6f09fea98829f3fe26db0b5896d57b76f1e4d5d5a8a53be0b4396a1c42acb76cc7ebb
7
- data.tar.gz: a391da7ab4f408f181f36e31d225e9243751de034607dea79a84cf98f8a8d4d5a2a84b6a217ab2fe3a77165beff51bbe1845e87076a1a2f8203733977f42cfd5
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, 'li.active-result')
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, 'li.active-result', text: item.strip).click
47
+ page.find(:css, "li[class*='active-result']", text: item.strip).click
48
48
  end
49
49
  else
50
- first(:css, 'li.active-result', text: option).click
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, 'li.active-result')
74
- obj.all('li.active-result').collect(&:text)
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, 'li.active-result')
93
- obj.all('li.active-result').count
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, 'li.active-result')
119
- obj.first("//li[contains(@class, 'result-selected')]").text
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
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.1.8.3'
2
+ VERSION = '2.1.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: 2.1.8.3
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-09 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler