watir-webdriver 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,6 +186,10 @@ module Watir
186
186
 
187
187
  def present?
188
188
  exists? && visible?
189
+ rescue Selenium::WebDriver::Error::ObsoleteElementError
190
+ # if the element disappears between the exists? and visible? calls,
191
+ # consider it not present.
192
+ false
189
193
  end
190
194
 
191
195
  def style(property = nil)
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jari Bakken