-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Let firefox choose the bidi port by default #15727
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
If the user hasn't asked for a specific port then just let firefox choose a random one.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
The documentation in this repository is excellent! Very clear and comprehensive. |
Thank you for your contribution @tomhughes ! |
User description
If the user hasn't asked for a specific port then just let firefox choose a random one.
🔗 Related Issues
Fixes #15707.
💥 What does this PR do?
Prevents race conditions choosing a bidi port by letting firefox choose.
🔧 Implementation Notes
Implementation is as suggested in #15707 (comment).
💡 Additional Considerations
None.
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Let Firefox choose BiDi port by default to avoid race conditions
Update service initialization to use '--websocket-port=0' unless specified
Remove and revise tests for websocket port assignment logic
Add new unit tests for argument handling in service initialization
Changes walkthrough 📝
service.rb
Default to Firefox-chosen BiDi port in service initialization
rb/lib/selenium/webdriver/firefox/service.rb
service_spec.rb
Remove integration test for random websocket port assignment
rb/spec/integration/selenium/webdriver/firefox/service_spec.rb
service_spec.rb
Revise and add unit tests for websocket port argument handling
rb/spec/unit/selenium/webdriver/firefox/service_spec.rb