mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Don't rename already specific errors in Safari driver
This commit is contained in:
parent
d06378a375
commit
a13eaa68e7
2 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,9 @@ class Capybara::Selenium::SafariNode < Capybara::Selenium::Node
|
||||||
return find_css('th:first-child,td:first-child')[0].click(keys, options)
|
return find_css('th:first-child,td:first-child')[0].click(keys, options)
|
||||||
end
|
end
|
||||||
raise
|
raise
|
||||||
rescue ::Selenium::WebDriver::Error::WebDriverError
|
rescue ::Selenium::WebDriver::Error::WebDriverError => e
|
||||||
|
raise unless e.instance_of? ::Selenium::WebDriver::Error::WebDriverError
|
||||||
|
|
||||||
# Safari doesn't return a specific error here - assume it's an ElementNotInteractableError
|
# Safari doesn't return a specific error here - assume it's an ElementNotInteractableError
|
||||||
raise ::Selenium::WebDriver::Error::ElementNotInteractableError,
|
raise ::Selenium::WebDriver::Error::ElementNotInteractableError,
|
||||||
'Non distinct error raised in #click, translated to ElementNotInteractableError for retry'
|
'Non distinct error raised in #click, translated to ElementNotInteractableError for retry'
|
||||||
|
|
|
@ -212,6 +212,10 @@ class TestApp < Sinatra::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get '/apple-touch-icon-precomposed.png' do
|
||||||
|
halt(404)
|
||||||
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
attr_accessor :form_post_count
|
attr_accessor :form_post_count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue