File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
javascript/selenium-webdriver Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,8 @@ class Builder {
682682 }
683683 // Allocate a free port for the websocket only when not connecting to an existing instance
684684 // This avoids conflicts when multiple Firefox instances have started
685- if ( ! service ?. args . includes ( '--connect-existing' ) ) {
686- service ?. args . push ( '--websocket-port' )
687- service ?. args . push ( `${ portprober . findFreePort ( ) } ` )
685+ if ( ! service ?. options_ . args . includes ( '--connect-existing' ) ) {
686+ service ?. addArguments ( '--websocket-port' , `${ portprober . findFreePort ( ) } ` )
688687 }
689688 return createDriver ( firefox . Driver , capabilities , service )
690689 }
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ DriverService.DEFAULT_START_TIMEOUT_MS = 30 * 1000
314314 */
315315DriverService . Builder = class {
316316 /**
317- * @param {string } exe Path to the executable to use. This executable must
317+ * @param {string } exex Path to the executable to use. This executable must
318318 * accept the `--port` flag for defining the port to start the server on.
319319 * @throws {Error } If the provided executable path does not exist.
320320 */
You can’t perform that action at this time.
0 commit comments