找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 2219|回复: 1

[求助] 脚本报错不知道怎么调试了,请大神帮忙看看

3

主题

4

帖子

4

积分

贫民

积分
4
kaka702 发表于 2019-7-4 10:59:59 | 显示全部楼层 |阅读模式
C:\Python37\python.exe D:/python_work/qiangguo.py
Traceback (most recent call last):
  File "D:/python_work/qiangguo.py", line 22, in <module>
    browser = webdriver.Chrome(executable_path=r'D:\lalala\chromedriver.exe',opti**=opti**)#这个地方的插件需要对照自己的谷歌版本去下载
  File "C:\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
    desired_capabilities=desired_capabilities)
  File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    resp**e = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_resp**e(resp**e)
  File "C:\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_resp**e
    raise exception_class(message, screen, stacktrace)
selenium.common.excepti**.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 76


Process finished with exit code 1


回复

使用道具 举报

0

主题

956

帖子

956

积分

圣骑士

积分
956
sheeboard 发表于 2019-7-4 14:35:36 | 显示全部楼层
Message: session not created: This version of ChromeDriver only supports Chrome version 76
这句话意思就是版本要匹配。多下载几个版本的驱动试试,不然就换浏览器。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表