watir-dom-wait 0.3.1 → 0.3.2

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: 0fc11a16d952457dedccdb310aa696335c614471
4
- data.tar.gz: 2c0ecf8e599cccbb4e4f64b3576052626dd780da
3
+ metadata.gz: 8da70c7e860203cf57a19b7fdf423af4e5ce90ab
4
+ data.tar.gz: b2e1ecf9fc2834274b2a2f8cb6f82a9affe7f9ec
5
5
  SHA512:
6
- metadata.gz: 690be61ea0f9ca9696855d41a2f2ebd7495f7d40c32a9f974a23b6357efd7ffd3673c4ada09c5ae7c28c47831d1d33097bd56233258ddc5764be98ca9914e7db
7
- data.tar.gz: 3ebe00866f24c2113796268d1de2534029cd03f64394b9b6f50e90cbf004042fe0512b6c4824eecf0c21ac8b739869eeb6907ecee685e7c7917e49dc93f2e091
6
+ metadata.gz: 8c52446146fd41d3b0d3f45048bc8d0f500b46e7cb0aa6a84189e81df8030ff28c8cfc32941e83460a3e80f1386dc423998c6da10f3d6aa14f5f63b5a0ad0a50
7
+ data.tar.gz: fa4c3b011bfc92646d022ea75e65ece0f1d439bc9baa271880772a668c597a4f98c2234dbc2a769d0306d71be308a1a4e5210ea272528a8f51ba6ed04178bab7
@@ -21,6 +21,11 @@ module Watir
21
21
  driver.execute_async_script(DOM_WAIT_JS, wd, delay)
22
22
  rescue Selenium::WebDriver::Error::StaleElementReferenceError
23
23
  retry
24
+ rescue Selenium::WebDriver::Error::JavascriptError => error
25
+ # sometimes we start script execution before new page is loaded and
26
+ # in rare cases ChromeDriver throws this error, we just swallow it and retry
27
+ retry if error.message.include?('document unloaded while waiting for result')
28
+ raise
24
29
  ensure
25
30
  # TODO: make sure we rollback to user-defined timeout
26
31
  # blocked by https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/6608
@@ -1,10 +1,9 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
 
5
4
  Gem::Specification.new do |spec|
6
5
  spec.name = "watir-dom-wait"
7
- spec.version = "0.3.1"
6
+ spec.version = "0.3.2"
8
7
  spec.authors = ["Alex Rodionov"]
9
8
  spec.email = %w(p0deje@gmail.com)
10
9
  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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir