-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[js] add --websocket-port flag when not connecting to existing connection on firefox #15513
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
Conversation
…tion on firefox
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
I think all the Firefox tests are failing. Can you help take a look? @Delta456 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks fine but there must be a reason for tests failing. Do they pass on your local machine? Wondering if this is RBE specific
Yes, they are passing locally. I am trying to figure out why it is failing on CI only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Delta456 !
Fix race condition!
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
By having the --websocket-port parameter by default we avoid port collisions when using BiDi with firefox
Motivation and Context
Fixes #15451 for JS binding
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
Added
--websocket-port
flag for Firefox to avoid port conflicts.Integrated
portprober
to dynamically allocate free ports.Ensured the flag is only applied when not connecting to an existing instance.
Changes walkthrough 📝
index.js
Add dynamic `--websocket-port` allocation for Firefox
javascript/selenium-webdriver/index.js
portprober
for dynamic port allocation.--websocket-port
with a free port for Firefox.