File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -224,10 +224,13 @@ async function start(_opts) {
224224 debug ( 'Spawning Selenium Server process' , opts . javaPath , args ) ;
225225
226226 if ( opts . onlyDriver && opts . drivers [ opts . onlyDriver ] ) {
227- const chromeDriverProcess = await startDriver (
228- fsPaths [ opts . onlyDriver ] . installPath ,
229- [ ...opts . drivers [ opts . onlyDriver ] . onlyDriverArgs , ...( ! opts . drivers [ opts . onlyDriver ] . onlyDriverArgs . some ( item => item . includes ( '--port=' ) ) && opts . onlyDriver !== 'firefox' ? [ `--port=9515` ] : [ ] ) ]
230- ) ;
227+ const chromeDriverProcess = await startDriver ( fsPaths [ opts . onlyDriver ] . installPath , [
228+ ...opts . drivers [ opts . onlyDriver ] . onlyDriverArgs ,
229+ ...( ! opts . drivers [ opts . onlyDriver ] . onlyDriverArgs . some ( ( item ) => item . includes ( '--port=' ) ) &&
230+ opts . onlyDriver !== 'firefox'
231+ ? [ `--port=9515` ]
232+ : [ ] ) ,
233+ ] ) ;
231234
232235 return chromeDriverProcess ;
233236 // eslint-disable-next-line no-else-return
You can’t perform that action at this time.
0 commit comments