Skip to content

Commit 1394608

Browse files
authored
[rb] Update Chrome/Edge args for test environment (#16376)
1 parent 9b743ea commit 1394608

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,17 @@ def chrome_options(args: [], **opts)
274274
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
275275
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
276276
opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY')
277-
args << '--headless=chrome' if ENV['HEADLESS']
277+
args << '--headless' if ENV['HEADLESS']
278278
args << '--no-sandbox' unless Platform.windows?
279-
args << '--disable-gpu'
280279
WebDriver::Options.chrome(args: args, **opts)
281280
end
282281

283282
def edge_options(args: [], **opts)
284283
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
285284
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
286285
opts[:binary] ||= ENV['EDGE_BINARY'] if ENV.key?('EDGE_BINARY')
287-
args << '--headless=chrome' if ENV['HEADLESS']
286+
args << '--headless' if ENV['HEADLESS']
288287
args << '--no-sandbox' unless Platform.windows?
289-
args << '--disable-gpu'
290288
WebDriver::Options.edge(args: args, **opts)
291289
end
292290

0 commit comments

Comments
 (0)