diff --git a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb index fa02021e7bf98..44b25580477b2 100644 --- a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb +++ b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb @@ -274,9 +274,8 @@ def chrome_options(args: [], **opts) opts[:browser_version] = 'stable' if WebDriver::Platform.windows? opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url) opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY') - args << '--headless=chrome' if ENV['HEADLESS'] + args << '--headless' if ENV['HEADLESS'] args << '--no-sandbox' unless Platform.windows? - args << '--disable-gpu' WebDriver::Options.chrome(args: args, **opts) end @@ -284,9 +283,8 @@ def edge_options(args: [], **opts) opts[:browser_version] = 'stable' if WebDriver::Platform.windows? opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url) opts[:binary] ||= ENV['EDGE_BINARY'] if ENV.key?('EDGE_BINARY') - args << '--headless=chrome' if ENV['HEADLESS'] + args << '--headless' if ENV['HEADLESS'] args << '--no-sandbox' unless Platform.windows? - args << '--disable-gpu' WebDriver::Options.edge(args: args, **opts) end