Skip to content

Commit 497a265

Browse files
committed
Better?
1 parent 68fd7c4 commit 497a265

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

dotnet/test/common/BiDi/BiDiFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public async Task BiDiSetUp()
2020
var options = new BiDiEnabledDriverOptions()
2121
{
2222
UseWebSocketUrl = true,
23+
UnhandledPromptBehavior = UnhandledPromptBehavior.Ignore,
2324
};
2425

2526
driver = EnvironmentManager.Instance.CreateDriverInstance(options);

dotnet/test/common/Environment/DriverFactory.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
6767
{
6868
browser = Browser.Chrome;
6969
options = GetDriverOptions<ChromeOptions>(driverType, driverOptions);
70-
//options.UseWebSocketUrl = true;
71-
72-
// If BiDi is enabled above then the undhandler prompt behaviour needs to set accordingly.
73-
// Reasoning : https://github.com/SeleniumHQ/selenium/pull/14429#issuecomment-2311614822
74-
options.UnhandledPromptBehavior = UnhandledPromptBehavior.Ignore;
7570

7671
var chromeOptions = (ChromeOptions)options;
7772
chromeOptions.AddArguments("--no-sandbox", "--disable-dev-shm-usage");

0 commit comments

Comments
 (0)