I'm researching selenium webdriver in C#
. When I run the test case to test browser IE
, then this error:
Test method AgileTravelUITests.GoogleSearchTest.TestIE threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The IEDriverServer.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://selenium-release.storage.googleapis.com/index.html.
I tried download and install 2.53
folder with IEDriverServer_x64_2.53.0.zip
, but this didn't work.
This is my code:
[TestMethod]
public void TestIE()
{
IWebDriver driver = new InternetExplorerDriver();
driver.Navigate().GoToUrl("http://www.google.com");
IWebElement element = driver.FindElement(By.Name("q"));
element.SendKeys("Hello Selenium WebDriver!");
element.Submit();
}
My code is working fine in IE now. You can follow this link Not able to launch IE browser using Selenium2 (Webdriver) with Java Java and C# are the same. Hope it helps.