@@ -8,7 +8,12 @@ import { browserSupportsHeadless } from "../lib/getBrowserString.js";
8
8
// Set script timeout to 10min
9
9
const DRIVER_SCRIPT_TIMEOUT = 1000 * 60 * 10 ;
10
10
11
- export default async function createDriver ( { browserName, headless, url, verbose } ) {
11
+ export default async function createDriver ( {
12
+ browserName,
13
+ headless,
14
+ url,
15
+ verbose
16
+ } ) {
12
17
const capabilities = Capabilities [ browserName ] ( ) ;
13
18
14
19
// Support: IE 11+
@@ -23,7 +28,6 @@ export default async function createDriver( { browserName, headless, url, verbos
23
28
24
29
const chromeOptions = new Chrome . Options ( ) ;
25
30
chromeOptions . addArguments ( "--enable-chrome-browser-cloud-management" ) ;
26
- chromeOptions . addArguments ( "--no-sandbox" ) ;
27
31
28
32
// Alter the chrome binary path if
29
33
// the CHROME_BIN environment variable is set
@@ -58,7 +62,9 @@ export default async function createDriver( { browserName, headless, url, verbos
58
62
59
63
const ieOptions = new IE . Options ( ) ;
60
64
ieOptions . setEdgeChromium ( true ) ;
61
- ieOptions . setEdgePath ( "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" ) ;
65
+ ieOptions . setEdgePath (
66
+ "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
67
+ ) ;
62
68
63
69
if ( headless ) {
64
70
chromeOptions . addArguments ( "--headless=new" ) ;
@@ -72,7 +78,8 @@ export default async function createDriver( { browserName, headless, url, verbos
72
78
}
73
79
}
74
80
75
- const driver = new Builder ( ) . withCapabilities ( capabilities )
81
+ const driver = new Builder ( )
82
+ . withCapabilities ( capabilities )
76
83
. setChromeOptions ( chromeOptions )
77
84
. setFirefoxOptions ( firefoxOptions )
78
85
. setEdgeOptions ( edgeOptions )
0 commit comments