watir-dom-wait 0.3.0 → 0.3.1

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: 93e9ba59672d1b85a9b7068e6423683c6dc32046
4
- data.tar.gz: dfb2a55dec1e3cec71669f0d4ed201109c6833d5
3
+ metadata.gz: 0fc11a16d952457dedccdb310aa696335c614471
4
+ data.tar.gz: 2c0ecf8e599cccbb4e4f64b3576052626dd780da
5
5
  SHA512:
6
- metadata.gz: 739f87a17b60dfcb303041633cb35fd91a25761942990dfe4d107cbd2147d25d382d39460d0519fa3f7276604603761aa2c0a9824983dfd1a61a857670bdf891
7
- data.tar.gz: 47edb3d7bee52504afd61a4501d37bd9410f2ff61ca2933899029e6d88ccf78e90fe28325996f0ff676bdc5c2f51537b6daaf8ce0c17baf27254aebb451a4149
6
+ metadata.gz: 690be61ea0f9ca9696855d41a2f2ebd7495f7d40c32a9f974a23b6357efd7ffd3673c4ada09c5ae7c28c47831d1d33097bd56233258ddc5764be98ca9914e7db
7
+ data.tar.gz: 3ebe00866f24c2113796268d1de2534029cd03f64394b9b6f50e90cbf004042fe0512b6c4824eecf0c21ac8b739869eeb6907ecee685e7c7917e49dc93f2e091
@@ -19,9 +19,11 @@ module Watir
19
19
  def dom_changed?(delay: 1.1)
20
20
  driver.manage.timeouts.script_timeout = delay + 1
21
21
  driver.execute_async_script(DOM_WAIT_JS, wd, delay)
22
+ rescue Selenium::WebDriver::Error::StaleElementReferenceError
23
+ retry
22
24
  ensure
23
25
  # TODO: make sure we rollback to user-defined timeout
24
- # blocked by https://code.google.com/p/selenium/issues/detail?id=6608
26
+ # blocked by https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/6608
25
27
  driver.manage.timeouts.script_timeout = 1
26
28
  end
27
29
  end # Element
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "watir-dom-wait"
7
- spec.version = "0.3.0"
7
+ spec.version = "0.3.1"
8
8
  spec.authors = ["Alex Rodionov"]
9
9
  spec.email = %w(p0deje@gmail.com)
10
10
  spec.description = "Watir extension which provides with method to check for DOM changes."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-dom-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.5.1
124
+ rubygems_version: 2.5.2
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Watir extension which provides with method to check for DOM changes.