1

尝试在 IE9 浏览器上运行 Selenium Ruby Webdriver 脚本时出现以下错误,浏览器未启动并显示以下错误:

  Selenium::WebDriver::Error::WebDriverError: Unable to find standalone executable
  . Please download the IEDriverServer from http://code.google.com/p/selenium/down
  loads/list and place the executable on your PATH.

 Below are lines of code that I have tried:

  browser=Selenium::WebDriver.for :ie
  @driver.get CONFIG['url']

如果我需要在这种情况下执行更多步骤以便能够使用 Ruby Selenium Webdriver 在 IE9 浏览器上运行脚本,请指导我。非常感谢。

4

1 回答 1

1

我认为错误日志是不言自明的。今后 IEDriver 必须单独下载,就像您现在为 chromedriver 所做的那样。作者在这里做了一个很好的解释。您可以从错误日志中的链接下载驱动程序 zip 并将其添加到您的 PATH。阅读更多@IEDriver

于 2012-11-28T07:14:26.577 回答