Hello,
I need to use Selenium to accept the JS alerts on CefSharp.
I notice that after sending the accept (driver.SwitchTo().Alert().Accept()) , the alert dialog is not closed.
The problem is not reproduced on Chrome.
I tried to check JsDialogHandler but I didn't find a solution.
I also tried to check it with CefSharp.MinimalExample (https://github.com/cefsharp/CefSharp.MinimalExample).
Here is my code:
IWebDriver driver = new ChromeDriver(cds, options);
var alert_win = driver.SwitchTo().Alert();
//Assert.AreEqual(expectedAlertText, alert_win.Text);
Thread.Sleep(100);
alert_win.Accept();
Please help,
Thanks