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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: dd0afd4ed4d86badecf47afd9e5fce2fe456482e
4
- data.tar.gz: f3d63d6237c9bc2c803375fcb6495e12ac5822dd
2
+ SHA256:
3
+ metadata.gz: c9e86f8c6ca1008d93ea5bdbdb7d2fe453b2087e966f0f02af7e4645d052e069
4
+ data.tar.gz: 5c83705d0a2615f86430c6a24ab902660d557a112ca1407c27a6eef239cf7ad6
5
5
  SHA512:
6
- metadata.gz: 0dff0c3a6baaa42c9262d26c0bd283506c70fa8663cb027ae046c03730e0e6268cca305c62ca4d9e779f721541318a719760d34159712e7d59e76763a4e8cbe2
7
- data.tar.gz: b2ac6e9d0ed2bb3b8b3257653326810579b00b06806ae21d613f82153f9e2842e29f928f77865dead6d0aa9b9a48d4927fa84ac3e6d7bd1bc57c4daa00c64b01
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
- node.all(:xpath, item_xpath, options.merge(wait: false)).size
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
@@ -1,3 +1,3 @@
1
1
  module AePageObjects
2
- VERSION = '4.1.0'.freeze
2
+ VERSION = '4.2.0'.freeze
3
3
  end
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.1.0
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-05-29 00:00:00.000000000 Z
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.5.2
83
+ rubygems_version: 2.7.7
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Capybara Page Objects pattern