File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
integration/selenium/webdriver/spec_support Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,15 @@ def safari_preview_driver(**opts)
250
250
def chrome_options ( args : [ ] , **opts )
251
251
opts [ :binary ] ||= ENV [ 'CHROME_BINARY' ] if ENV . key? ( 'CHROME_BINARY' )
252
252
args << '--headless=chrome' if ENV [ 'HEADLESS' ]
253
+ args << '--no-sandbox' if ENV [ 'NO_SANDBOX' ]
253
254
args << '--disable-gpu'
254
255
WebDriver ::Options . chrome ( browser_version : 'stable' , args : args , **opts )
255
256
end
256
257
257
258
def edge_options ( args : [ ] , **opts )
258
259
opts [ :binary ] ||= ENV [ 'EDGE_BINARY' ] if ENV . key? ( 'EDGE_BINARY' )
259
260
args << '--headless=chrome' if ENV [ 'HEADLESS' ]
261
+ args << '--no-sandbox' if ENV [ 'NO_SANDBOX' ]
260
262
args << '--disable-gpu'
261
263
WebDriver ::Options . edge ( browser_version : 'stable' , args : args , **opts )
262
264
end
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ BROWSERS = {
30
30
}) | select ({
31
31
"@selenium//common:use_headless_browser" : {"HEADLESS" : "true" },
32
32
"//conditions:default" : {},
33
+ }) | select ({
34
+ "@platforms//os:windows" : {},
35
+ "//conditions:default" : {"NO_SANDBOX" : "true" },
33
36
}),
34
37
},
35
38
"edge" : {
@@ -53,6 +56,9 @@ BROWSERS = {
53
56
}) | select ({
54
57
"@selenium//common:use_headless_browser" : {"HEADLESS" : "true" },
55
58
"//conditions:default" : {},
59
+ }) | select ({
60
+ "@platforms//os:windows" : {},
61
+ "//conditions:default" : {"NO_SANDBOX" : "true" },
56
62
}),
57
63
},
58
64
"firefox" : {
You can’t perform that action at this time.
0 commit comments