I'm receiving the following error when executing a Selenium automated test case from Microsoft Test Manager:
Initialization method RegressionTests.Online.LoginSuccess.init threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:7058/hub/session/3b544efb-cefe-4e0e-84c2-906c46bb31ea/element timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out..
Background:
I've created a Selenium WebDriver test in C# that executes successfully when executed on it's own in Visual Studio 2013.
Then I created a Test Case in Microsoft Test Manager and associated the Selenium test to the Test Case in Visual Studio.
As per the guide on this site, I've converted the Selenium test case to a Coded UI test case.
On my local PC I have:
- A Test Controller registered with the TFS collection
- A Test Agent (as an interactive process) that can connect successfully to the Test Controller
- Test settings (in test manager) that use an automated Web Client environment (my test controller/agent)
- A build associated with the Test Case
When executing the test case in Microsoft Test Manager, a firefox window does open up. However nothing appears to be executed and it just times out as per the error.
Am I missing something here? I have no idea why the test times out in test manager when it works fine on it's own in Visual Studio.