Skip to content
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

drivers: Document websocket-port arg, set it to random #196

Conversation

nextlevelbeard
Copy link
Contributor

There is an undocumented argument (--websocket-port) to pass to geckodriver, according to mozilla/geckodriver#2011 (comment)

This change documents it and sets it to random (port zero) for new sessions.
Previously if none was set, the default (9222) would be used.

This would pose an issue when users specified webSocketUrl capability as N instances running in parallel would try to connect to the default port and fail.

Allows for WebDriver BiDi / CDP - enabled parallel runs for Firefox with the webdriverIO project.

Fixes webdriverio/webdriverio#10839

Copy link
Contributor

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Thank you!

@christian-bromann christian-bromann merged commit 0abe390 into webdriverio-community:main Aug 11, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Driver manager: Multiple Firefox instances not running, same port used
2 participants