@@ -505,6 +505,9 @@ protected WebDriver buildWebDriver() throws IOException {
505505 final String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
506506
507507 final EdgeOptions options = new EdgeOptions ();
508+ // BiDi
509+ options .setCapability ("webSocketUrl" , true );
510+
508511 options .addArguments ("--lang=" + locale );
509512 options .addArguments ("--remote-allow-origins=*" );
510513
@@ -538,6 +541,9 @@ protected WebDriver buildWebDriver() throws IOException {
538541 final String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
539542
540543 final ChromeOptions options = new ChromeOptions ();
544+ // BiDi
545+ options .setCapability ("webSocketUrl" , true );
546+
541547 options .addArguments ("--lang=" + locale );
542548 options .addArguments ("--remote-allow-origins=*" );
543549 options .addArguments ("--disable-search-engine-choice-screen" );
@@ -590,6 +596,9 @@ private FirefoxDriver createFirefoxDriver(final String geckodriverBinary, final
590596 .build ();
591597
592598 final FirefoxOptions options = new FirefoxOptions ();
599+ // BiDi
600+ options .setCapability ("webSocketUrl" , true );
601+
593602 options .setBinary (binary );
594603
595604 String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
@@ -1168,7 +1177,6 @@ protected final WebDriver verifyTextArea2(final WebDriver driver,
11681177 }
11691178
11701179 protected final String getJsVariableValue (final WebDriver driver , final String varName ) throws Exception {
1171-
11721180 final String script = "return String(" + varName + ")" ;
11731181 final String result = (String ) ((JavascriptExecutor ) driver ).executeScript (script );
11741182
0 commit comments