selenium下启动Firefox配置
上一篇 /
下一篇 2016-11-02 15:18:41
/ 个人分类:Python
Traceback(most recent call last):File"C:\Users\LENOVO\Desktop\kk2.py",line4,in<module>driver=webdriver.Firefox()File"C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py",line135,in__init__
self.service.start()File"C:\Python27\lib\site-packages\selenium\webdriver\common\service.py",line71,instart
os.path.basename(self.path),self.start_error_message)WebDriverException:Message:'geckodriver'executable needs to beinPATH.
如何chrome和IE浏览器,在selenium 3.0以上版本在启动Firefox时,需要下载geckodriver插件。下载地址如下:https://github.com/mozilla/geckodriver/releases
1.下载相应版本的geckdriver.exe,放在C:\python27
2.将Firefox浏览器的路径(C:\Program Files (x86)\Mozilla Firefox)添加在Path下
相关阅读:
- Exception in thread "main" org.openqa.selenium.WebDriverException (喵的啦啦, 2015-9-14)
- Firefox下安装selenium IDE插件 (Amei8830, 2015-10-09)
- Mozilla正式推iOS版Firefox浏览器 (zaza9084, 2015-11-13)
- selenium实现firefox浏览器的自动下载保存文件 (ewwerpm, 2016-2-13)
- 关于Sublime text3中,Selenium启动Firefox卡顿问题 (wenling2023, 2016-4-08)
- selenium java 设置firefox的默认下载文件路径 (mehll1213, 2016-4-12)
- Memory tools in Firefox (fangch82, 2016-7-05)
- “死亡”倒计时:Firefox下月将禁用不重要的Flash内容 (zaza9084, 2016-7-21)
- 如何让Chrome和Firefox崩溃 研究人员发现新漏洞 (zaza9084, 2016-7-29)
- webdriver firefox设置文件下载路径 (tail_of_youth, 2016-8-29)
收藏
举报
TAG:
firefox
Firefox