ae_page_objects 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/ae_page_objects/elements/collection.rb +13 -1
- data/lib/ae_page_objects/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c9e86f8c6ca1008d93ea5bdbdb7d2fe453b2087e966f0f02af7e4645d052e069
|
4
|
+
data.tar.gz: 5c83705d0a2615f86430c6a24ab902660d557a112ca1407c27a6eef239cf7ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df20f9855a011e7d57182dd83c0fe5ac995bf7146912674843e1bc446f8baff9d75f10eb68399c9e04136301fb50fc5325643b5194471dd0f18e790ae073bb7
|
7
|
+
data.tar.gz: e80741c88ce3db5e8ad83cb18285fba48df172e119bac308f65c71404523944655ad336b8813939cf0e5d6b19c9f655678afdc943c0f793b01965d71e8dc0c5f
|
@@ -41,7 +41,19 @@ module AePageObjects
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def size
|
44
|
-
|
44
|
+
#
|
45
|
+
# In some cases when #size is called while the DOM is updating, Capybara
|
46
|
+
# will catch (and swallow) underlying exceptions such as
|
47
|
+
# `Selenium::WebDriver::Error::StaleElementReferenceError`.
|
48
|
+
# When this happens it will wait up to the max wait time, which can cause
|
49
|
+
# issues for `AePageObjects.wait_until` blocks.
|
50
|
+
#
|
51
|
+
# To prevent this issue the #all and #size calls are made with the Capybara
|
52
|
+
# wait time set to 0.
|
53
|
+
#
|
54
|
+
Capybara.using_wait_time(0) do
|
55
|
+
node.all(:xpath, item_xpath, options).size
|
56
|
+
end
|
45
57
|
end
|
46
58
|
|
47
59
|
def last
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_page_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.7.7
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Capybara Page Objects pattern
|