Skip to content

Commit cc11dd5

Browse files
committed
use correct method
1 parent 6079f27 commit cc11dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/selenium-webdriver/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ class Builder {
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
685685
if (!service?.args.includes('--connect-existing')) {
686-
service?.args.append('--websocket-port')
687-
service?.args.append(`${portprober.findFreePort()}`)
686+
service?.args.push('--websocket-port')
687+
service?.args.push(`${portprober.findFreePort()}`)
688688
}
689689
return createDriver(firefox.Driver, capabilities, service)
690690
}

0 commit comments

Comments
 (0)