diff --git a/examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs b/examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs index 618e5361ecce..4d07da3a3b33 100644 --- a/examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs +++ b/examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs @@ -53,5 +53,20 @@ public void SetPageLoadStrategyNone() driver.Quit(); } } + [TestMethod] + public void SetUnhandledPromptBehavior() + { + var chromeOptions = new ChromeOptions(); + chromeOptions.UnhandledPromptBehavior = UnhandledPromptBehavior.DismissAndNotify; + IWebDriver driver = new ChromeDriver(chromeOptions); + try + { + driver.Navigate().GoToUrl("https://selenium.dev"); + } + finally + { + driver.Quit(); + } + } } -} \ No newline at end of file +}