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)
274
274
opts [ :browser_version ] = 'stable' if WebDriver ::Platform . windows?
275
275
opts [ :web_socket_url ] = true if ENV [ 'WEBDRIVER_BIDI' ] && !opts . key? ( :web_socket_url )
276
276
opts [ :binary ] ||= ENV [ 'CHROME_BINARY' ] if ENV . key? ( 'CHROME_BINARY' )
277
- args << '--headless=chrome ' if ENV [ 'HEADLESS' ]
277
+ args << '--headless' if ENV [ 'HEADLESS' ]
278
278
args << '--no-sandbox' unless Platform . windows?
279
- args << '--disable-gpu'
280
279
WebDriver ::Options . chrome ( args : args , **opts )
281
280
end
282
281
283
282
def edge_options ( args : [ ] , **opts )
284
283
opts [ :browser_version ] = 'stable' if WebDriver ::Platform . windows?
285
284
opts [ :web_socket_url ] = true if ENV [ 'WEBDRIVER_BIDI' ] && !opts . key? ( :web_socket_url )
286
285
opts [ :binary ] ||= ENV [ 'EDGE_BINARY' ] if ENV . key? ( 'EDGE_BINARY' )
287
- args << '--headless=chrome ' if ENV [ 'HEADLESS' ]
286
+ args << '--headless' if ENV [ 'HEADLESS' ]
288
287
args << '--no-sandbox' unless Platform . windows?
289
- args << '--disable-gpu'
290
288
WebDriver ::Options . edge ( args : args , **opts )
291
289
end
292
290
You can’t perform that action at this time.
0 commit comments