Skip to content

Commit 019f7c5

Browse files
authored
[java] Set remote active protocol to BiDi for Firefox (#15224)
1 parent 666e225 commit 019f7c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/src/org/openqa/selenium/firefox/FirefoxOptions.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ public class FirefoxOptions extends AbstractDriverOptions<FirefoxOptions> {
6262
public FirefoxOptions() {
6363
setCapability(CapabilityType.BROWSER_NAME, FIREFOX.browserName());
6464
setAcceptInsecureCerts(true);
65-
// Firefox 129 onwards the CDP protocol will not be enabled by default. Setting this preference
66-
// will enable it.
6765
// https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/.
68-
addPreference("remote.active-protocols", 3);
66+
// Enable BiDi only
67+
addPreference("remote.active-protocols", 1);
6968
}
7069

7170
public FirefoxOptions(Capabilities source) {

0 commit comments

Comments
 (0)