From d196d33e2f0b552f608a35df9c6db06affc67926 Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Tue, 2 Jan 2024 18:14:39 +0330 Subject: [PATCH] Use headless=new Source: https://github.com/SeleniumHQ/selenium/issues/13112 --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index f40f2d62a..03851addb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -30,7 +30,7 @@ Capybara.server = :webrick Capybara.register_driver :headless_chrome do |app| - options = Selenium::WebDriver::Chrome::Options.new(args: %w[no-sandbox headless disable-gpu]) + options = Selenium::WebDriver::Chrome::Options.new(args: %w[no-sandbox headless=new disable-gpu]) Capybara::Selenium::Driver.new(app, browser: :chrome, options: options) end