python - selenium2.53.1启动火狐47.0报错
怪我咯
怪我咯 2017-04-18 09:49:17
[Python讨论组]
>>> br=webdriver.Firefox()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 103, in __init__
    self.binary, timeout)
  File "D:\Python27\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 51, in __init__
    self.binary.launch_browser(self.profile, timeout=timeout)
  File "D:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 67, in launch_browser
    self._start_from_profile_path(self.profile.path)
  File "D:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 90, in _start_from_profile_path
    env=self._firefox_env)
  File "D:\Python27\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
  File "D:\Python27\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
WindowsError: [Error 2]

请问这个怎么解决呀?

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(2)
天蓬老师

其实selenium 2.53.1已经支持Firefox 47.0.1版本了,看情况是firefox的可执行路径无法被找到。

ringa_lee

换个版本低一点的firfox就行了

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号