File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
rb/spec/integration/selenium/webdriver/spec_support Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments