watir 6.16.3 → 6.16.4

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: b416cb3a4dcc8350fc8f8b5994f9b58e8b3fb1c0
4
- data.tar.gz: 6fd65f2eda2bafd7993789c311852258481f7199
3
+ metadata.gz: fcbf81dd19c0ffd26538c95fa2bc4d60bbb586f9
4
+ data.tar.gz: ca4c040702c05688734b705a5289050a6639a7fd
5
5
  SHA512:
6
- metadata.gz: 767c776aa67bb214410cf07040fcc5531ee0f8bdee073f8535fe18b6eaeba2fe723eb8f48cdfb5394ff9258b0a898130a9881e140cdc22ebd550e34f15428e01
7
- data.tar.gz: 0da908dc00c76f593dce7e7547505541b805cd031d1c17158ef268b03498d2d1133ae1115ea2e65ca30e0939f7c455d21791f89bad5bb014888b2daab033c03b
6
+ metadata.gz: a4eed31e3b8b780fb95b776139ad26ab74f25675a355c3eaf8ba31d5aaeb780456b1b2d59691c25e6f582189dd5614b3e5f193076c586e030c6a75fb492fdde5
7
+ data.tar.gz: c46820e3e7698298e3c647fc739b4531dd405b81fa4dc42b2a3aa8fc67c62981cb04b64e7fad666283fdf4a20f1dfbaadc967f661602c682b8e8b4eb9162036a
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 6.16.4 (2018-12-24)
2
+
3
+ * Minor adjustments to support locator extensions
4
+
1
5
  ### 6.16.3 (2018-12-24)
2
6
 
3
7
  * Minor adjustments to support locator extensions
@@ -36,11 +36,6 @@ module Watir
36
36
  def matching_elements
37
37
  return locate_element(*@built.to_a.flatten) if @built.size == 1 && @filter == :first
38
38
 
39
- # SelectorBuilder only allows one of these
40
- wd_locator_key = (Watir::Locators::W3C_FINDERS & @built.keys).first
41
- wd_locator = @built.select { |k, _v| wd_locator_key == k }
42
- match_values = @built.reject { |k, _v| wd_locator_key == k }
43
-
44
39
  # TODO: Wrap this to continue trying until default timeout
45
40
  retries = 0
46
41
  begin
@@ -56,6 +51,16 @@ module Watir
56
51
  end
57
52
  end
58
53
 
54
+ def wd_locator
55
+ # SelectorBuilder only allows one of these
56
+ wd_locator_key = (Watir::Locators::W3C_FINDERS & @built.keys).first
57
+ @wd_locator ||= @built.select { |k, _v| wd_locator_key == k }
58
+ end
59
+
60
+ def match_values
61
+ @match_values ||= @built.reject { |k, _v| wd_locator.keys.first == k }
62
+ end
63
+
59
64
  def locator_scope
60
65
  @locator_scope ||= @built.delete(:scope) || @query_scope.browser
61
66
  end
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- VERSION = '6.16.3'.freeze
2
+ VERSION = '6.16.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.16.3
4
+ version: 6.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov