@@ -505,6 +505,9 @@ protected WebDriver buildWebDriver() throws IOException {
505
505
final String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
506
506
507
507
final EdgeOptions options = new EdgeOptions ();
508
+ // BiDi
509
+ options .setCapability ("webSocketUrl" , true );
510
+
508
511
options .addArguments ("--lang=" + locale );
509
512
options .addArguments ("--remote-allow-origins=*" );
510
513
@@ -538,6 +541,9 @@ protected WebDriver buildWebDriver() throws IOException {
538
541
final String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
539
542
540
543
final ChromeOptions options = new ChromeOptions ();
544
+ // BiDi
545
+ options .setCapability ("webSocketUrl" , true );
546
+
541
547
options .addArguments ("--lang=" + locale );
542
548
options .addArguments ("--remote-allow-origins=*" );
543
549
options .addArguments ("--disable-search-engine-choice-screen" );
@@ -590,6 +596,9 @@ private FirefoxDriver createFirefoxDriver(final String geckodriverBinary, final
590
596
.build ();
591
597
592
598
final FirefoxOptions options = new FirefoxOptions ();
599
+ // BiDi
600
+ options .setCapability ("webSocketUrl" , true );
601
+
593
602
options .setBinary (binary );
594
603
595
604
String locale = getBrowserVersion ().getBrowserLocale ().toLanguageTag ();
@@ -1168,7 +1177,6 @@ protected final WebDriver verifyTextArea2(final WebDriver driver,
1168
1177
}
1169
1178
1170
1179
protected final String getJsVariableValue (final WebDriver driver , final String varName ) throws Exception {
1171
-
1172
1180
final String script = "return String(" + varName + ")" ;
1173
1181
final String result = (String ) ((JavascriptExecutor ) driver ).executeScript (script );
1174
1182
0 commit comments