I have a simple Selenium test in VS2010 test project as follows.
[TestMethod] public void MyTestInIE8() { IWebDriver driver = new InternetExplorerDriver(); try { driver.Navigate().GoToUrl("http://localhost/MyMVC/ABC/DoStuff"); driver.FindElement((By.Id("Name"))).SendKeys("John");
This works fine on the local server. However, on the build server, it does not work with the following message. ... threw an exception: OpenQA.Selenium.WebDriverException: server response for URL http: // localhost: 4444 / session / 5e5e9b7a-e05c-40d8-9a20-9cab138b2b87 .
The problem seems to be calling the Quit () method in the finally clause. I tried to pass a known port number, i.e. InternetExplorerDriver (8080), but that didn't make any difference. The Firefox driver works great both locally and on the build server. I found that someone was reporting a similar problem, but could not find a working solution. http://groups.google.com/group/webdriver/msg/4347971da4d96e97
Here is my configuration. Windows 7 Professional SP1, 64 bit.
Webdriver - selenium-dotnet-2.0b2.
IE8
My build server is Windows Server2008 R2 Standard with IE8.
Thanks.
source share