Skip to content

Commit fbeecea

Browse files
committed
[py] Always set websocket-port when starting geckodriver
1 parent 030f1f6 commit fbeecea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/selenium/webdriver/firefox/service.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ def __init__(
5858
)
5959

6060
# Set a port for CDP
61-
if "--connect-existing" not in self.service_args:
62-
self.service_args.append("--websocket-port")
63-
self.service_args.append(f"{utils.free_port()}")
61+
self.service_args.append("--websocket-port")
62+
self.service_args.append(f"{utils.free_port()}")
6463

6564
def command_line_args(self) -> List[str]:
6665
return ["--port", f"{self.port}"] + self.service_args

0 commit comments

Comments
 (0)