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:
parent
8f9e450c2c
commit
6666c34637
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue