When I open page https://the-internet.herokuapp.com/basic_auth I have authentication login popup. How I can click "cancel"?
I tried to dismiss this alert but driver stopped on this code:
driver.Url = "https://the-internet.herokuapp.com/basic_auth"
and I get an error.
This is my code:
{
[TestMethod]
public void TestMethod1()
{
IWebDriver driver = new ChromeDriver();
driver.Url = "https://the-internet.herokuapp.com/basic_auth";
IAlert alert = driver.SwitchTo().Alert();
alert.Dismiss();
}
}
I have an error message in Visual Studio:
"OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:51508/session/5c55323e7618568db8a156ea224f181e/url timed out after 60 seconds."