Rescue StaleElementReferenceError

Seems like StaleElementReferenceError is a superclass to ObsoleteElementError, so it is better to catch this one.
This commit is contained in:
Elabs Developer 2012-09-11 15:06:13 +03:00
parent 45f2184b0f
commit be672f3dcf
1 changed files with 1 additions and 1 deletions

View File

@ -113,6 +113,6 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
end
def invalid_element_errors
[Selenium::WebDriver::Error::ObsoleteElementError, Selenium::WebDriver::Error::UnhandledError]
[Selenium::WebDriver::Error::StaleElementReferenceError, Selenium::WebDriver::Error::UnhandledError]
end
end