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