Maintenance: Update Selenium Error to TimeoutError from TimeOutError

This commit is contained in:
Bola Ahmed Buari 2021-10-22 15:36:06 +01:00
parent 5bb17cb776
commit 1d67c84bef
No known key found for this signature in database
GPG key ID: 69F689AC67133AFC

View file

@ -170,7 +170,7 @@ module BrowserTestHelper
rescue Capybara::ElementNotFound
# doesn't exist yet
end
rescue Selenium::WebDriver::Error::TimeOutError => e
rescue Selenium::WebDriver::Error::TimeoutError => e
# cleanup backtrace
e.set_backtrace(e.backtrace.drop(3))
raise e
@ -191,7 +191,7 @@ module BrowserTestHelper
rescue Capybara::ElementNotFound
true
end
rescue Selenium::WebDriver::Error::TimeOutError => e
rescue Selenium::WebDriver::Error::TimeoutError => e
# cleanup backtrace
e.set_backtrace(e.backtrace.drop(3))
raise e