watir-webdriver 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/watir-webdriver/elements/element.rb +2 -0
- data/lib/watir-webdriver/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -33,7 +33,7 @@ The file in lib/watir/elements/generated.rb is autogenerated from the HTML5 spec
|
|
33
33
|
Specs
|
34
34
|
-----
|
35
35
|
|
36
|
-
watir-webdriver uses
|
36
|
+
watir-webdriver uses [watirspec](http://github.com/jarib/watirspec) for testing. After cloning, you should fetch the submodule:
|
37
37
|
|
38
38
|
git submodule init && git submodule update
|
39
39
|
|
@@ -266,6 +266,8 @@ module Watir
|
|
266
266
|
def assert_not_stale
|
267
267
|
@element.enabled? # do a staleness check - any wire call will do.
|
268
268
|
rescue Selenium::WebDriver::Error::ObsoleteElementError => ex
|
269
|
+
# don't cache a stale element - it will never come back
|
270
|
+
@element = nil
|
269
271
|
raise UnknownObjectException, "#{ex.message} - #{selector_string}"
|
270
272
|
end
|
271
273
|
|
data/spec/spec_helper.rb
CHANGED
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jari Bakken
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-09 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: selenium-webdriver
|