testcentricity_web 2.2.0 → 2.2.1

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: 51e425a0438ffbc951a7180d449635a471de2bdf
4
- data.tar.gz: 2bd8cf4ac5a3fdd66ee2b9760c182c1d5f57e7b5
3
+ metadata.gz: a22d10e0a98ccb67cbad9cbd9b53ec13aca5e5a8
4
+ data.tar.gz: 080382fb259e781f11dbdd2482273c990dc89abc
5
5
  SHA512:
6
- metadata.gz: 04bbcf18e7f07dba7fb680a384154040bde5b8293aa82c152485ff840e81365c863d436b0f99566824bac64cca01a41f729c864dff043c5f61d3ec02d527547f
7
- data.tar.gz: 34f4e08cf58cf763a7c82c2c0298bd5ff52855edc924f75cd2a661b031496e48dd0a4fc08c3aa924c9be2942772cc97702a7e7c110a134ab1947ce785f1963d9
6
+ metadata.gz: 8deb7b3f53d6e059a1fecceb37054b8818b28c1f50c627769d6b2e0e21fa6acc9e4ce3d0b99423cabafb1da729b3b396fdfebf31b3031b8c236db48dc1b22cf5
7
+ data.tar.gz: 6b504a926fb6d58edd47331207fb5af0185eba4d84eb50f0eac39be82e7193ad836606fa74665e8226a60253cb9a3733f6c77802a51317ec28eb1ca067f9957b
@@ -49,7 +49,11 @@ module TestCentricity
49
49
  page.find(:css, "li[class*='active-result']", text: item.strip).click
50
50
  end
51
51
  else
52
- first(:css, "li[class*='active-result']", text: option).click
52
+ if option.is_a?(Hash)
53
+ page.find(:css, "li[class*='active-result']:nth-of-type(#{option[:index]})").click if option.has_key?(:index)
54
+ else
55
+ first(:css, "li[class*='active-result']", text: option).click
56
+ end
53
57
  end
54
58
  else
55
59
  if option.is_a?(Array)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski