Ignore optimizations if JS not supported

This commit is contained in:
Thomas Walpole 2019-04-16 15:02:03 -07:00
parent 21b0e4fbc4
commit c6eeb73d8c
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ module Capybara
hint
end
end
rescue ::Selenium::WebDriver::Error::StaleElementReferenceError
rescue ::Selenium::WebDriver::Error::StaleElementReferenceError,
::Capybara::NotSupportedByDriverError
# warn 'Unexpected Stale Element Error - skipping optimization'
hints = []
end