selenium启动报错:selenium.common.exceptions.SessionNotCreatedException: Message: session not created
报错 启动 not session selenium message Common exceptions
2023-09-27 14:25:45 时间
错误提示:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 96
Current browser version is 102.0.5005.63
原因:
Chrome版本和ChromeDriver版本不一致,极有可能是Chrome浏览器自动升级了新版本,导致两者版本差异,运行不了。
解决方法:
1)查看Chrome浏览器的版本
我这里是102版本的;
2)下载对应版本的ChromeDriver
下载地址:ChromeDriver
我下载的是上面的102版本最后一个,因为我的Chrome就是102的。
3)查找chromedrciver.exe的位置
在命令行窗口输入:
where chromedriver
就可以看到安装的它的位置。
4)替换
直接将刚下载的chromedriver.exe放到上面的位置,进行替换,就大功告成了。
相关文章
- Eclipse中启动tomcat报错java.lang.OutOfMemoryError: PermGen space的解决方法
- linux上执行wget报错:unable to resolve host address
- O365(世纪互联)SharePoint 之使用Designer报错
- SharePoint 2016 配置向导报错 - The 'ListInternal' attribute is not allowed
- redhat7.4 docker run启动容器报错container_linux.go:449
- deepin linux 15.3安装完eclipse启动报错An error has occurred.
- JRebel热加载插件激活、启动报错解决方法以及java类加载、热加载原理
- spring boot 启动 NoClassDefFoundError: org/springframework/core/ErrorCoded 报错
- eclipse 启动报错workspace.metadata.log
- 终端启动tomcat报错 command not found 解决方法 (含启动和关闭命令)
- mysql中大数据表alter增加字段报错:"1034 Incorrect key file for table 'table_name'; try to repair it"
- proxmox创建虚拟机后,启动报错:TASK ERROR: KVM virtualisation configured, but not available. Either disable in V
- Unity 打包后无法调用dll报错
- ktor启动报错:Module function cannot be found for the fully qualified name 'ApplicationKt.module'
- Kibana源码启动报错记录--ENOSPC
- 【Spring Cloud Alibaba】(五)Dubbo启动报错?一直重连报错?你值得学习的是排查问题的方法
- [ 解决报错篇 ] tomcat 执行 startup.bat 文件报错 -- tomcat 启动失败(安装 java 环境并配置环境变量)
- 刚装完的数据库报错 ORA-01102 ORA-1102 signalled during....