pickles 0.1.4 → 0.1.5

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: fc2a0b4f400c9a384ac0254bc6f18b40a648ac14
4
- data.tar.gz: c6e7c1faf5d71549a6240523e07a591976758bb2
3
+ metadata.gz: 5d0c7d4056e2e3909ebbe8672306d0d6e3275bc6
4
+ data.tar.gz: 474fe04cffb71d35710d72ca3169e8a25cab40bd
5
5
  SHA512:
6
- metadata.gz: 1dea2510df1fa68ba505b3a1b861c553bda1684f2eeda3bf248e9cf8d291e433e243383763655cb3373f775e3b107c468e2e01e56113843c5c918c6a0c123cbd
7
- data.tar.gz: 4b47e7231ec46a1f3e15a2d5cd6c85813f733e98958dd47b3d13c549b40b496c4ffca2328f86e5100dd78d403ef5990f2b0103bb42e99fec5eb5e4bff7c1109e
6
+ metadata.gz: 5cbe614587e22d7d5d760fc4f6eb6184151ac369a2211abe24e651bce48f713ca1b1278014d0bf334f4ce0a2043f29e7d4062a2da27de68d994707a87343a69a
7
+ data.tar.gz: c0ce6bad7f8fafee2b991c7baf12fb6f371494f7002d1cd0e339c8c9bdd2d9f1748a3ea503c6ed9c8749ce1bbb0374cb4ef932fb0c828c8c36609b0d8e543a13
@@ -46,11 +46,11 @@ module NodeFinders
46
46
  if xpath = Pickles.config.xpath_node_map[el_alias]
47
47
  xpath = xpath.respond_to?(:call) ? xpath.call(locator) : xpath
48
48
 
49
- search_params = [:xpath, xpath, wait: 0]
49
+ search_params = [:xpath, xpath, wait: 0, visible: false]
50
50
  elsif css = Pickles.config.css_node_map[el_alias] || el_alias
51
51
  css = css.respond_to?(:call) ? css.call(locator) : css
52
52
 
53
- search_params = [:css, css, text: locator, wait: 0]
53
+ search_params = [:css, css, text: locator, wait: 0, visible: false]
54
54
  end
55
55
 
56
56
  if index
@@ -3,13 +3,16 @@ within_reg = /\A\s*(.*)?\s*(?:["|'](.*?)["|'])?\s*\Z/
3
3
  Transform(/(within .*)$/) do |within_info|
4
4
  splitted = within_info.split('within').reject(&:blank?)
5
5
 
6
- Waiter.wait_for_ajax
7
6
 
8
7
  splitted.reverse_each.inject(page) do |within, info|
9
8
  captures = Helpers::Regex::WITHIN.match(info).captures
10
9
  el_alias = captures[0]
11
10
  locator = captures[1]
12
11
 
13
- Pickles.detect_node(el_alias, locator, within: within)
12
+ Waiter.wait do
13
+ within = Pickles.detect_node(el_alias, locator, within: within)
14
+ end
15
+
16
+ within
14
17
  end
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module Pickles
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vs