-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[java] Enable bidi support for Chrome and Firefox by default #15531
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
We need to figure out how to make this transition with limited impact on users since not all computers have socket access enabled. |
CDP works over WebSockets, is there any issues? |
Yeah, when you pass true as a capability and the remote end can't satisfy it, you can't get a session. Everything breaks and it's not obvious why. |
@@ -66,6 +66,7 @@ public FirefoxOptions() { | |||
// will enable it. | |||
// https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/. | |||
addPreference("remote.active-protocols", 3); |
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.
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.
There was pending PR for this. Let me go sort that out. Thank you!
@@ -66,6 +66,7 @@ public FirefoxOptions() { | |||
// will enable it. | |||
// https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/. | |||
addPreference("remote.active-protocols", 3); | |||
enableBiDi(); |
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.
Would it make sense to give the user a choice to opt-out in case they really don't want to see BiDi enabled?
Seems we don't want to do this yet. Closing. |
PR Type
Enhancement
Description
Enabled WebDriver BiDi support by default for Chrome.
Enabled WebDriver BiDi support by default for Firefox.
Updated constructors in
ChromiumOptions
andFirefoxOptions
to includeenableBiDi
calls.Changes walkthrough 📝
ChromiumOptions.java
Enable BiDi support by default in ChromiumOptions
java/src/org/openqa/selenium/chromium/ChromiumOptions.java
enableBiDi
in the constructor.browsers.
FirefoxOptions.java
Enable BiDi support by default in FirefoxOptions
java/src/org/openqa/selenium/firefox/FirefoxOptions.java
enableBiDi
in the default constructor.