1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Error when alert is open is now UnexpectedAlertOpenError

This commit is contained in:
Thomas Walpole 2017-05-24 16:31:48 -07:00
parent 8f9e450c2c
commit 6666c34637

View file

@ -149,7 +149,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
raise Capybara::ExpectationNotMet.new('Timed out waiting for Selenium session reset') if (Capybara::Helpers.monotonic_time - start_time) >= 10
sleep 0.05
end
rescue Selenium::WebDriver::Error::UnhandledAlertError
rescue Selenium::WebDriver::Error::UnhandledAlertError, Selenium::WebDriver::Error::UnexpectedAlertOpenError
# This error is thrown if an unhandled alert is on the page
# Firefox appears to automatically dismiss this alert, chrome does not
# We'll try to accept it