wait_for handles disappearing elements better
This commit is contained in:
parent
0e66f6a81b
commit
899a4cb2af
@ -6,6 +6,9 @@ def _wait_for_exceptions
|
|||||||
if defined?(Capybara::Driver::Webkit::Node::ElementNotDisplayedError)
|
if defined?(Capybara::Driver::Webkit::Node::ElementNotDisplayedError)
|
||||||
exceptions << Capybara::Driver::Webkit::Node::ElementNotDisplayedError
|
exceptions << Capybara::Driver::Webkit::Node::ElementNotDisplayedError
|
||||||
end
|
end
|
||||||
|
if defined?(Selenium::WebDriver::Error::StaleElementReferenceError)
|
||||||
|
exceptions << Selenium::WebDriver::Error::StaleElementReferenceError
|
||||||
|
end
|
||||||
|
|
||||||
exceptions
|
exceptions
|
||||||
end
|
end
|
||||||
@ -15,6 +18,9 @@ def _wait_for_not_exceptions
|
|||||||
if defined?(Capybara::Driver::Webkit::NodeNotAttachedError)
|
if defined?(Capybara::Driver::Webkit::NodeNotAttachedError)
|
||||||
exceptions << Capybara::Driver::Webkit::NodeNotAttachedError
|
exceptions << Capybara::Driver::Webkit::NodeNotAttachedError
|
||||||
end
|
end
|
||||||
|
if defined?(Selenium::WebDriver::Error::StaleElementReferenceError)
|
||||||
|
exceptions << Selenium::WebDriver::Error::StaleElementReferenceError
|
||||||
|
end
|
||||||
|
|
||||||
exceptions
|
exceptions
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user