pickles 0.1.2 → 0.1.3

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: 72d6e22f2f6fd14229c296df173b4854762edef1
4
- data.tar.gz: 51d569bc63640d7d5161c93d7015e6c26beeb32c
3
+ metadata.gz: b88674382914897752d9bcb69e46a941d7caa8cb
4
+ data.tar.gz: 3442c729baefa56eb638c1efb200b46a84a87766
5
5
  SHA512:
6
- metadata.gz: 2ed654f8c2c9f98b0000a762c24211bdecd6edeb71eb3adeff68ba854095d674dc88231ca6c407ed59984d8ceb2cb0dd11fc92c74a931fc3866551d4bca54775
7
- data.tar.gz: fc52d31e3d0a68c27ae9ac138a27a1421ddf7c90c63c43c438f836e8711630b12a21597f657b5e38b910e582a848516379b6e831c6af56a4b67284296ec2fd41
6
+ metadata.gz: 3367879a78a5d2bd0a8ce1d52718e4574d5c0dcae196e6aca83ea664282b4b505edca70249f018e39a74e3428398af5149084b06f314658d08f0458410fe4d24
7
+ data.tar.gz: 346b019fac361c97bcbdf01d3f5b2fd15bc2ec7ebee9e516bb2f41d59685065a773c1540c7bada794e1aa7202868577f42ec476a0253d1aeace6a75505d2ed6c
@@ -58,7 +58,7 @@ module NodeFinders
58
58
  else
59
59
  _rescued_find(search_params, locator || el_alias, within: within, message: "Detecting by #{xpath || css}") do
60
60
  raise Capybara::ElementNotFound,
61
- "Unable to detect node by locator #{locator}",
61
+ "Unable to detect node by locator #{css || xpath} #{locator}",
62
62
  caller
63
63
  end
64
64
  end
@@ -3,7 +3,9 @@ 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
- splitted.reverse_each.each_with_object(page) do |info, within|
6
+ Waiter.wait_for_ajax
7
+
8
+ splitted.reverse_each.inject(page) do |within, info|
7
9
  captures = Helpers::Regex::WITHIN.match(info).captures
8
10
  el_alias = captures[0]
9
11
  locator = captures[1]
@@ -1,3 +1,3 @@
1
1
  module Pickles
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vs