当前位置:   article > 正文

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of_run函数message: session not created: this version of

run函数message: session not created: this version of microsoft edge webdrive

问题描述

报错selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 78




解决方案

  1. 查看本机Chrome版本号
    在这里插入图片描述
  2. 根据版本号搜谷歌浏览器驱动镜像
    在这里插入图片描述
  3. 将解压后的chromedriver.exe放在C:\Users\Administrator\AppData\Local\Programs\Python\Python36
  4. 测试代码
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
  • 1
  • 2
  • 3
  • 4




参考文献

  1. 解决selenium.common.exceptions.SessionNotCreatedException
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/168525
推荐阅读
相关标签
  

闽ICP备14008679号