mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Change selenium config due to protected method errors
This commit is contained in:
parent
5849ecb66e
commit
1467a80ae5
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
||||||
def browser
|
def browser
|
||||||
unless @browser
|
unless @browser
|
||||||
if firefox?
|
if firefox?
|
||||||
options[:desired_capabilities] ||= Selenium::WebDriver::Remote::Capabilities.firefox
|
options[:desired_capabilities] ||= {}
|
||||||
options[:desired_capabilities].merge!({ unexpectedAlertBehaviour: "ignore" })
|
options[:desired_capabilities].merge!({ unexpectedAlertBehaviour: "ignore" })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Capybara.register_driver :selenium_marionette do |app|
|
||||||
Capybara::Selenium::Driver.new(
|
Capybara::Selenium::Driver.new(
|
||||||
app,
|
app,
|
||||||
browser: :firefox,
|
browser: :firefox,
|
||||||
desired_capabilities: Selenium::WebDriver::Remote::Capabilities.firefox(marionette: true)
|
desired_capabilities: {marionette: true}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Capybara.register_driver :selenium_marionette_clear_storage do |app|
|
||||||
Capybara::Selenium::Driver.new(
|
Capybara::Selenium::Driver.new(
|
||||||
app,
|
app,
|
||||||
browser: :firefox,
|
browser: :firefox,
|
||||||
desired_capabilities: Selenium::WebDriver::Remote::Capabilities.firefox(marionette: true),
|
desired_capabilities: {marionette: true},
|
||||||
clear_local_storage: true,
|
clear_local_storage: true,
|
||||||
clear_session_storage: true
|
clear_session_storage: true
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue