Skip to content

Commit de20051

Browse files
committed
fix code
1 parent cc11dd5 commit de20051

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

javascript/selenium-webdriver/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

javascript/selenium-webdriver/remote/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ DriverService.DEFAULT_START_TIMEOUT_MS = 30 * 1000
314314
*/
315315
DriverService.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
*/

0 commit comments

Comments
 (0)