小编Ama*_* HR的帖子

如何使用C#使用Selenium WebDriver实例化InternetExplorerDriver

new InternetExplorerDriver();
Run Code Online (Sandbox Code Playgroud)

但我可以看到异常如下:

OpenQA.Selenium.DriverServiceNotFoundException was unhandled by user code
  HResult=-2146233088
  Message=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://code.google.com/p/selenium/downloads/list.
  Source=WebDriver
  StackTrace:
       at OpenQA.Selenium.DriverService.FindDriverServiceExecutable(String executableName, Uri downloadUrl)
       at OpenQA.Selenium.IE.InternetExplorerDriverService.CreateDefaultService()
       at OpenQA.Selenium.IE.InternetExplorerDriver..ctor(InternetExplorerOptions options)
       at OpenQA.Selenium.IE.InternetExplorerDriver..ctor()
       at Accelrys.CommonTestFramework.WebActions.WebActionLibrary.CreateSeleniumDriver()
Run Code Online (Sandbox Code Playgroud)

c# selenium selenium-webdriver remotewebdriver iedriverserver

9
推荐指数
2
解决办法
2万
查看次数