You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2, because the PR introduces a new method in multiple classes to encapsulate an existing capability setting. The changes are straightforward and localized, but they span multiple files which slightly increases the review effort.
🧪 Relevant tests
Yes
⚡ Possible issues
Consistency Issue: The method enableBiDi() sets the capability "webSocketUrl" to true. The naming suggests it should be setting a URL, not a boolean. This could lead to confusion or misuse of the method.
Why: The suggestion is valid as it addresses code duplication and improves maintainability by suggesting the extraction of repeated code into a helper method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Related to #13991
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.
Description
Add a method to enable BiDi
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
enableBiDimethod toChromiumOptionsandFirefoxOptionsto simplify enabling BiDi by setting thewebSocketUrlcapability.BiDiSessionCleanUpTestto use the newenableBiDimethod.Browserclass to use the newenableBiDimethod.Changes walkthrough 📝
ChromiumOptions.java
Add `enableBiDi` method to ChromiumOptionsjava/src/org/openqa/selenium/chromium/ChromiumOptions.java
enableBiDimethod to set thewebSocketUrlcapability.FirefoxOptions.java
Add `enableBiDi` method to FirefoxOptionsjava/src/org/openqa/selenium/firefox/FirefoxOptions.java
enableBiDimethod to set thewebSocketUrlcapability.BiDiSessionCleanUpTest.java
Use `enableBiDi` method in BiDiSessionCleanUpTestjava/test/org/openqa/selenium/bidi/BiDiSessionCleanUpTest.java
enableBiDimethod in tests.Browser.java
Use `enableBiDi` method in Browser configurationsjava/test/org/openqa/selenium/testing/drivers/Browser.java
enableBiDimethod in browserconfigurations.