pickles 0.1.4 → 0.1.5
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: 5d0c7d4056e2e3909ebbe8672306d0d6e3275bc6
|
4
|
+
data.tar.gz: 474fe04cffb71d35710d72ca3169e8a25cab40bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|