Ignore optimizations if JS not supported
This commit is contained in:
parent
21b0e4fbc4
commit
c6eeb73d8c
|
@ -30,7 +30,8 @@ module Capybara
|
||||||
hint
|
hint
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue ::Selenium::WebDriver::Error::StaleElementReferenceError
|
rescue ::Selenium::WebDriver::Error::StaleElementReferenceError,
|
||||||
|
::Capybara::NotSupportedByDriverError
|
||||||
# warn 'Unexpected Stale Element Error - skipping optimization'
|
# warn 'Unexpected Stale Element Error - skipping optimization'
|
||||||
hints = []
|
hints = []
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue