yoyotree 发表于 2012-7-3 15:07:20

selenium-webdriver 无法打开IE 求助!

有用selenium2的童鞋吗?
执行打开IE浏览器的脚本时报这个错,提示需要下载IEwebdriverserver并配置到环境变量中,我下载了该文件配置到环境变量中仍报错,求解!
win7 32位 +IE8且IE的保护模式均关闭
ruby 1.9.2

ruby browser.rb
D:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver/ie/server.rb:13:in `get’: Unable to find standalone executable. Please download the IEDriverServer from http://code.google.com/p/selenium/downloads/list and place the executable on your PATH. (Selenium::WebDriver::Error::WebDriverError)
from D:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver/ie/bridge.rb:26:in `initialize’
from D:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver/common/driver.rb:35:in `new’
from D:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver/common/driver.rb:35:in `for’
from D:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver.rb:65:in `for’
from browser.rb:5:in `’
>Exit code: 1

zhoufuxiang 发表于 2012-9-25 17:57:31

http://code.google.com/p/selenium/downloads/list
从该路径下载的IEDriverServer.exe放到ruby的bin目录下就可以哦,楼主是这样试的么

yinxiaodan 发表于 2012-10-24 09:30:20

回复 2# zhoufuxiang


   我也遇到同样的问题,已解决,thanks

shandongdong 发表于 2013-7-9 00:17:22

回复 3# yinxiaodan


    请问如何解决的?我今天刚搭建环境碰到这种问题,求解。非常感谢119135678@qq.com

joykao 发表于 2013-7-15 13:33:16

回复 4# shandongdong


谷歌下IEDriver.exe文件然后下载下来解压添加到你的IE 安装目录下

TPGJQR 发表于 2013-8-14 14:44:19

创意哦!楼主高人啊 谢
页: [1]
查看完整版本: selenium-webdriver 无法打开IE 求助!