Rescue StaleElementReferenceError
Seems like StaleElementReferenceError is a superclass to ObsoleteElementError, so it is better to catch this one.
This commit is contained in:
parent
45f2184b0f
commit
be672f3dcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue