Ignore optimizations if JS not supported
This commit is contained in:
parent
21b0e4fbc4
commit
c6eeb73d8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue