WebDriverException: Message: 'IEDriverServer.exe' executable needs to be in PATH. Please download fr
来源:互联网 发布:软件编写入门 编辑:程序博客网 时间:2024/06/07 10:41
详细描述:想用chrome浏览器来执行测试用例,按照官方文档http://code.google.com/p/selenium/wiki/ChromeDriver
问题解决:最后在stackoverflow上找到答案,原答案地址:
http://stackoverflow.com/questions/8255929/running-webdriver-chrome-with-selenium
用下面这种方法设环境变量就ok啦:
import os
from selenium import webdriver
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get("http://stackoverflow.com")
driver.quit()
2.我相信很多人会去手写Python脚本
请大家注意调用浏览器首字母要大写,如:Firefox,Chrome,Ie
3.注意得把IEDriverServer跟chromedriver放到对应浏览器的安装目录下
配置浏览器的环境变量Path:如
Chrome:C:\Users\wyx\AppData\Local\Google\Chrome\Application
4.在python的安装目录下也放IEDriverServer,chromedriver
- WebDriverException: Message: 'IEDriverServer.exe' executable needs to be in PATH. Please download fr
- WebDriverException: Message: 'phantomjs.exe' executable needs to be in PATH.
- WebDriverException:Message:'geckodriver'executable needs to be in Path
- WebDriverException:Message:'geckodriver'executable needs to be in Path
- WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
- WebDriverException:Message:'geckodriver'executable needs to be in Path
- python运行时提示WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
- python运行时提示WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
- selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
- selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
- 运行提示:WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
- selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH
- python运行时提示WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
- selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
- MAC安装chromedriver提示“Message: 'chromedriver' executable needs to be in PATH.Please see ...”
- Selenium配合chromedriver提示“Message: 'chromedriver' executable needs to be in PATH.Please see ...”
- MAC安装chromedriver提示“Message: 'chromedriver' executable needs to be in PATH.Please see ...”
- Message: 'phantomjs' executable needs to be in PATH. 处理
- 小金变呀变变变形记
- js删除特定节点
- 状态码502和504分析
- AngularJS学习
- SQL语句(实用篇)
- WebDriverException: Message: 'IEDriverServer.exe' executable needs to be in PATH. Please download fr
- Discuz插件开发中的困惑
- Web服务器
- 算法与设计分析作业2(动态规划)
- iOS 工作之余小总结(四)--(2)可变与不可变数组
- echarts 柱状图 固定柱宽 最大宽度
- shell 脚本之文本处理
- Javamail发送邮件
- DB2数据库创建用户及授权(解决C#程序进行select、insert等操作无权限问题)