@@ -76,18 +76,22 @@ function driverLocation(options) {
7676 )
7777 }
7878
79- console . log ( 'Applicable driver not found; attempting to install with Selenium Manager (Beta)' )
79+ console . log (
80+ 'Applicable driver not found; attempting to install with Selenium Manager (Beta)'
81+ )
8082
8183 let args = [ '--browser' , options . getBrowserName ( ) , '--output' , 'json' ]
8284
83- if ( options . getBrowserVersion ( ) && options . getBrowserVersion ( ) !== "" ) {
84- args . push ( " --browser-version" , options . getBrowserVersion ( ) )
85+ if ( options . getBrowserVersion ( ) && options . getBrowserVersion ( ) !== '' ) {
86+ args . push ( ' --browser-version' , options . getBrowserVersion ( ) )
8587 }
8688
87- const vendorOptions = options . get ( 'goog:chromeOptions' ) || options . get ( 'ms:edgeOptions' )
88- || options . get ( 'moz:firefoxOptions' )
89- if ( vendorOptions && vendorOptions . binary && vendorOptions . binary !== "" ) {
90- args . push ( "--browser-path" , '"' + vendorOptions . binary + '"' )
89+ const vendorOptions =
90+ options . get ( 'goog:chromeOptions' ) ||
91+ options . get ( 'ms:edgeOptions' ) ||
92+ options . get ( 'moz:firefoxOptions' )
93+ if ( vendorOptions && vendorOptions . binary && vendorOptions . binary !== '' ) {
94+ args . push ( '--browser-path' , '"' + vendorOptions . binary + '"' )
9195 }
9296
9397 const smBinary = getBinary ( )
@@ -106,15 +110,18 @@ function driverLocation(options) {
106110 errorMessage = e . toString ( )
107111 }
108112 }
109- throw new Error ( `Error executing command for ${ smBinary } with ${ args } : ${ errorMessage } ` )
113+ throw new Error (
114+ `Error executing command for ${ smBinary } with ${ args } : ${ errorMessage } `
115+ )
110116 }
111117 try {
112118 output = JSON . parse ( spawnResult . stdout . toString ( ) )
113119 } catch ( e ) {
114- throw new Error ( `Error executing command for ${ smBinary } with ${ args } : ${ e . toString ( ) } ` )
120+ throw new Error (
121+ `Error executing command for ${ smBinary } with ${ args } : ${ e . toString ( ) } `
122+ )
115123 }
116124
117-
118125 for ( const key in output . logs ) {
119126 if ( output . logs [ key ] . level === 'WARN' ) {
120127 console . warn ( `${ output . logs [ key ] . message } ` )
0 commit comments