I am using the selenium webdriver to run my automation tests. One of my tests opens a login page, enters credentials and clicks the login button. When I run it locally I can see that it has successfully logged in to the site but then my test throws an error on the click method even though I've seen it move onto the next page. I'm also using Chrome Driver.
The text on the error says:
OpenQA.Selenium.WebDriverException: 'The HTTP request to the remote WebDriver server for URL http://localhost:4444/click timed out after 60 seconds.
Inner Exception WebException: The request was aborted: The operation has timed out.
This is the code I'm using to locate the element and to click it:
private IWebElement LoginButton => Wait.Until(d => Driver.FindElementByCssSelector(".btn"));
private void ClickLoginButton()
{
LoginButton.Click();
}
Other click methods for other sites are working fine, I only seem to be seeing this error with this button.
chromedriverand browser versions? - Guy