-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: Add argument for websocket-port #15451
Comments
I can fix Python... it looks like it gets set to a free port only if you pass the I'll link a PR in a few minutes. |
Here's the Python PR: #15452 |
Re-reading the actual code, Python & .NET seem to be doing the right thing already, they always send the websocket port unless the user passes a flag explicitly requesting to reuse the driver instance to create a new session. So the real issue is getting the other bindings to add the toggle and the code to always add the socket port. |
@titusfortner will EDIT: will ask this in the geckodriver issue |
What happened?
Mozilla recently changed how it handles multiple sessions on the same geckodriver. We can avoid this by passing in a unique / available port with
websocket-port
argument.Python and .NET do this already, but only when there is a flag to reuse the driver, and I'm not sure it makes sense to hide it behind that flag now, but I haven't spent time working with the logic.
See
mozilla/geckodriver#2219
and
mozilla/geckodriver#2218
How can we reproduce the issue?
Relevant log output
Operating System
n/a
Selenium version
trunk
What are the browser(s) and version(s) where you see this issue?
Firefox 136
What are the browser driver(s) and version(s) where you see this issue?
Geckodriver 0.36
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: