码迷,mamicode.com
首页 > 编程语言 > 详细

python中使用selenium调用Firefox缺少geckodriver解决方法

时间:2017-11-25 16:21:11      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:报错   ase   image   import   blog   方法   mozilla   rom   release   

from selenium import webdriver

driver=webdriver.Firefox()

会报错

 技术分享图片

解决方法:

因为缺少geckodriver.exe,先到https://github.com/mozilla/geckodriver/releases下载对应版本的geckofriver.exe

然后放到python的安装目录与python.exe在同一目录下

 

python中使用selenium调用Firefox缺少geckodriver解决方法

标签:报错   ase   image   import   blog   方法   mozilla   rom   release   

原文地址:http://www.cnblogs.com/dj0325/p/7895432.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!