python - selenium2.53.1启动火狐47.0报错

 sen0226714 发布于 2022-10-26 14:43
>>> br=webdriver.Firefox()
Traceback (most recent call last):
  File "", line 1, in 
  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 个回答
  • 换个版本低一点的firfox就行了

    2022-10-27 01:14 回答
  • 其实selenium 2.53.1已经支持Firefox 47.0.1版本了,看情况是firefox的可执行路径无法被找到。

    2022-10-27 01:15 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有