导入selenium后,使用出错,困扰好久的问题,请求大佬帮助

zhoukeguai 2020-06-20 05:40:54
Traceback (most recent call last):
File "C:/Users/东东/PycharmProjects/untitled/23.py", line 2, in <module>
driver = webdriver.Firefox()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\webdriver.py", line 77, in __init__
self.binary, timeout),
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\extension_connection.py", line 49, in __init__
self.binary.launch_browser(self.profile)
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 103, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile "
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.


以上是报错信息,下面是我使用的一些版本 python 3.5.4 selenium2.48.0 firfox 35


...全文
19345 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
铩胍崾牮镪 2020-07-24
  • 打赏
  • 举报
回复
selenium和驱动版本不一致
xiaoyuebai 2020-07-16
  • 打赏
  • 举报
回复 1
selenium和firefox不兼容导致的,搜一下selenium2.48.0支持的浏览器版本重装就好了

5,177

社区成员

发帖
与我相关
我的任务
社区描述
软件工程/管理 质量管理/软件测试
功能测试压力测试安全性测试 个人社区 湖南省·长沙市
社区管理员
  • 软件测试
  • 虫无涯
  • 小博测试成长之路
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

欢迎大家加入到软件测试的社区,在这里,希望大家勇于发表自己的看法,欢迎大家分享自己在软件测试工作过程中遇到的问题以及工作经验分享。

1.想转行的小伙伴,遇到问题没有及时回复的,可以私聊小博进行反馈

2.大家对社区有好的建议,都可以在社区发帖进行反馈

推荐大家学习的软件测试入门笔记:软件测试入门学习笔记

试试用AI创作助手写篇文章吧