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 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 the watir2 branch of watirspec for testing. After cloning, you should fetch the submodule:
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
 
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -29,4 +29,4 @@ end
29
29
 
30
30
  if Selenium::WebDriver::Platform.linux? && ENV['DISPLAY'].nil?
31
31
  raise "DISPLAY not set"
32
- end
32
+ 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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
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-06 00:00:00 Z
18
+ date: 2011-12-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: selenium-webdriver