From df5941b7cc246d46f35b033c15675d05e6ac4cdf Mon Sep 17 00:00:00 2001 From: Yuriy Alekseyev Date: Tue, 26 Jan 2021 13:25:49 +0300 Subject: [PATCH] Use chrome browser in selenium_chrome and selenium_chrome_headless drivers --- lib/capybara/registrations/drivers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/registrations/drivers.rb b/lib/capybara/registrations/drivers.rb index c4b053df..18667aae 100644 --- a/lib/capybara/registrations/drivers.rb +++ b/lib/capybara/registrations/drivers.rb @@ -25,7 +25,7 @@ Capybara.register_driver :selenium_chrome do |app| opts.add_argument('--disable-site-isolation-trials') end - Capybara::Selenium::Driver.new(app, **Hash[:browser => :firefox, options_key => browser_options]) + Capybara::Selenium::Driver.new(app, **Hash[:browser => :chrome, options_key => browser_options]) end Capybara.register_driver :selenium_chrome_headless do |app| @@ -38,5 +38,5 @@ Capybara.register_driver :selenium_chrome_headless do |app| opts.add_argument('--disable-site-isolation-trials') end - Capybara::Selenium::Driver.new(app, **Hash[:browser => :firefox, options_key => browser_options]) + Capybara::Selenium::Driver.new(app, **Hash[:browser => :chrome, options_key => browser_options]) end