@@ -8,7 +8,12 @@ import { browserSupportsHeadless } from "../lib/getBrowserString.js";
88// Set script timeout to 10min
99const DRIVER_SCRIPT_TIMEOUT = 1000 * 60 * 10 ;
1010
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+ } ) {
1217 const capabilities = Capabilities [ browserName ] ( ) ;
1318
1419 // Support: IE 11+
@@ -23,7 +28,6 @@ export default async function createDriver( { browserName, headless, url, verbos
2328
2429 const chromeOptions = new Chrome . Options ( ) ;
2530 chromeOptions . addArguments ( "--enable-chrome-browser-cloud-management" ) ;
26- chromeOptions . addArguments ( "--no-sandbox" ) ;
2731
2832 // Alter the chrome binary path if
2933 // the CHROME_BIN environment variable is set
@@ -58,7 +62,9 @@ export default async function createDriver( { browserName, headless, url, verbos
5862
5963 const ieOptions = new IE . Options ( ) ;
6064 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+ ) ;
6268
6369 if ( headless ) {
6470 chromeOptions . addArguments ( "--headless=new" ) ;
@@ -72,7 +78,8 @@ export default async function createDriver( { browserName, headless, url, verbos
7278 }
7379 }
7480
75- const driver = new Builder ( ) . withCapabilities ( capabilities )
81+ const driver = new Builder ( )
82+ . withCapabilities ( capabilities )
7683 . setChromeOptions ( chromeOptions )
7784 . setFirefoxOptions ( firefoxOptions )
7885 . setEdgeOptions ( edgeOptions )
0 commit comments