我收到以下错误:
IEDriverServer.exe does not exist-The file c:\users\administrator\documents\visual studio 2010\projects\TestProject1\TestProject1\bin\Debug\IEDriverServer.exe does not exist. The driver can be downloaded at 07000
我使用的是IE 9和Windows 7。
IWebDriver driver = new InternetExplorerDriver(); driver.Navigate().GoToUrl("http://www.google.co.uk"); IWebElement queryBox = driver.FindElement(By.Name("q")); queryBox.SendKeys("The Automated Tester"); queryBox.SendKeys(Keys.ArrowDown); queryBox.Submit();
也可以看看 。
The .NET bindings don’t scan the %PATH% environment variable for the
executable. That means for the .NET bindings only,the
IEDriverServer.exe is expected to either be found in the same
directory as the .NET bindings assembly,or you must specify the
directory where it can be found in the constructor to the
InternetExplorerDriver class.Failure to do one of these things (or to
set the UseInternalServer property in the InternetExplorerOptions
class) will cause the .NET IE driver implementation to throw an
exception. This is strictly by design,as we want people to begin
using the standalone IEDriverServer.exe,and the ability to use an
“internal” or “legacy” version of the server will be removed in a
future release.
https://groups.google.com/forum/?fromgroups#!topic/webdriver/EvTyEPYchxE
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。