【cl】找不到火狐Cannot find firefox binary in PATH
2015-12-02 17:03
281 查看
org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'MININT-RQ9DS4O', ip: '30.10.3.30', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_60'
Driver info: driver.version: FirefoxDriver
解决办法有四个:
1.重新安装firefox在默认路径下;
2.直接用System.setProperty方法设置webdriver.firefox.bin的值 ;
3.利用setCapability进行设置 ;
4.用FirefoxBinary类和public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)这个构造方法;
参考:http://sariyalee.iteye.com/blog/1688271
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'MININT-RQ9DS4O', ip: '30.10.3.30', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_60'
Driver info: driver.version: FirefoxDriver
解决办法有四个:
1.重新安装firefox在默认路径下;
OS | Expected Location of Firefox |
Linux | firefox (found using "which") |
Mac | /Applications/Firefox.app/Contents/MacOS/firefox |
Windows | %PROGRAMFILES%\Mozilla Firefox\firefox.exe |
3.利用setCapability进行设置 ;
4.用FirefoxBinary类和public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)这个构造方法;
参考:http://sariyalee.iteye.com/blog/1688271
相关文章推荐
- spark 安装
- EditText设置cursor位置
- 《程序员保值的4个秘密》摘录
- iOS 多线程下的NStimer 的使用
- 在C#中对于null/DBNull.Value值进行类型转换时,除了Convert.ToString()之外,其他的转换都会报空引用异常;
- 化繁为简 如何向老婆解释MapReduce?
- AndBase 学习笔记(一)之旋转木马实现
- Leet 题目整理归类 - 快速通道 (持续更新)
- 数字图像处理:第八章 形态学运算
- PullToRefreshListView 如何返回顶部
- 根据7种生命周期 设计定时器的周期
- Intellij IDEA JUnit处理
- 20151202正则第四部分(grep,egrep,sed复习)
- 【js对象属性的getter和setter】
- MySQL 5.7.9 免安装配置
- Spring MVC视图层:thymeleaf vs. JSP
- Cheatsheet: 2015 11.01 ~ 11.30
- selenium2.x python 虚拟浏览器 搭建与使用
- 修改方法内容,不重启tomcat服务器
- 数字图像处理:第七章 邻域运算