Skip to content

Commit

Permalink
[dotnet] Disable setting 'websocketurl' capability for Chrome tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Aug 27, 2024
1 parent 88f00af commit 85f589e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dotnet/test/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ csharp_library(

dotnet_nunit_test_suite(
name = "AllTests",
size = "large",
size = "small",
srcs = glob([
"**/*Test.cs",
"**/*Tests.cs",
Expand Down
7 changes: 6 additions & 1 deletion dotnet/test/common/Environment/DriverFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
{
browser = Browser.Chrome;
options = GetDriverOptions<ChromeOptions>(driverType, driverOptions);
options.UseWebSocketUrl = true;
// Disabling this since we do not have any BiDi tests currently.
//options.UseWebSocketUrl = true;

// If BiDi is enabled above then the undhandler prompt behaviour needs to set accordingly.
// Reasoning : https://github.com/SeleniumHQ/selenium/pull/14429#issuecomment-2311614822
//options.UnhandledPromptBehavior = UnhandledPromptBehavior.Ignore;

var chromeOptions = (ChromeOptions)options;
chromeOptions.AddArguments("--no-sandbox", "--disable-dev-shm-usage");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.openqa.selenium.environment.webserver.AppServer;
import org.openqa.selenium.environment.webserver.NettyAppServer;
import org.openqa.selenium.testing.JupiterTestBase;
import org.openqa.selenium.testing.NotYetImplemented;

class BrowsingContextInspectorTest extends JupiterTestBase {

Expand Down

0 comments on commit 85f589e

Please sign in to comment.