Skip to content

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

Merged
christian-bromann merged 1 commit intowebdriverio-community:mainfrom
nextlevelbeard:fix-websocket-gecko
Aug 11, 2023
Merged

drivers: Document websocket-port arg, set it to random#196
christian-bromann merged 1 commit intowebdriverio-community:mainfrom
nextlevelbeard:fix-websocket-gecko

Conversation

@nextlevelbeard
Copy link
Copy Markdown
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
Copy Markdown
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
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