I'm executing an automated test with Selenium ChromeDriver against a form on a web page. When I click the Submit button on the form, my WebDriver is losing connection to the browser/page/components, etc. Any subsequent action against the page objects or the browser results in timeouts because it no longer has a connection. It's as if the submit causes the underlying connection to break.
This is the error I get and it's a similar error no matter if I'm trying to click a page object, manipulate the browser, read any attributes, etc.
The HTTP request to the remote WebDriver server for URL:
http://localhost:5621/session/270f189e4b90085032409e475c3a3079/url timed out after 60 seconds.
additional information: at System.Net.HttpWebRequest.GetResponse()\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
Is there a way to re-establish(refresh) a Selenium WebDriver connection or best option, to prevent the connection from getting broken? The web app developers state that they don't know of anything the app would be doing that would cause it.
There is nothing special about the code - same code I execute for 100s of tests. submitButton.Click(); where submitButton uses a css locator. Again, I'm unable to manipulate any page objects at all anymore, as if the browser was shut down even though it's still up and open.
code is a simple button click
driver.FindElement(By.Id("btnLogin")).Click();