Skip to content

Commit 5c5cee9

Browse files
committed
[dotnet] tests should default to bidi disabled
1 parent f81f85b commit 5c5cee9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dotnet/test/common/Environment/DriverFactory.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
6767
{
6868
browser = Browser.Chrome;
6969
options = GetDriverOptions<ChromeOptions>(driverType, driverOptions);
70-
options.UseWebSocketUrl = true;
7170

7271
var chromeOptions = (ChromeOptions)options;
7372
chromeOptions.AddArguments("--no-sandbox", "--disable-dev-shm-usage");
@@ -185,6 +184,11 @@ protected void OnDriverLaunching(DriverService service, DriverOptions options)
185184
options.ImplicitWaitTimeout = overriddenOptions.ImplicitWaitTimeout;
186185
}
187186

187+
if (System.Environment.GetEnvironmentVariable("WEBDRIVER_BIDI") == "true")
188+
{
189+
options.UseWebSocketUrl = true;
190+
}
191+
188192
return options;
189193
}
190194

0 commit comments

Comments
 (0)