当前位置:网站首页>Selenium 报错:session not created: This version of ChromeDriver only supports Chrome version 81
Selenium 报错:session not created: This version of ChromeDriver only supports Chrome version 81
2022-07-27 14:18:00 【Honyelchak】
问题
最近需要用selenium完成一个自动化测试,出现了以下错误:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
应该是chromedriver与chrome版本不匹配造成的。
解决方案
从浏览器中查看chrome的版本号
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-D6VplHzW-1616388842829)(爬虫.assets/image-20210322123515853.png)]](/img/be/d695daa1fce6fa7e49381ff56df194.png)
从
http://npm.taobao.org/mirrors/chromedriver上下载对应版本的驱动将
chromedriver.exe解压出来,可以将文件解压到python的安装目录,也可以解压到任意地方。当然程序中允许自定义
chromedriver.exe的路径chrome_driver = r"G:\Anaconda3\Lib\site-packages\selenium\webdriver\chrome\chromedriver" driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=chrome_driver)
边栏推荐
- NEFU118 n!后面有多少个0【算术基本定理】
- 深圳市人力资源和社会保障局关于发放脱贫人口就业有关补贴的通知
- Digital storage oscilloscope based on FIFO idt7202-12
- 网络设备硬核技术内幕 路由器篇 19 DPDK(四)
- 网络设备硬核技术内幕 路由器篇 (10) CISCO ASR9900拆解 (四)
- OBS advanced DXGI acquisition screen process, and how to modify it to its own cursor
- 关于印发《深圳市工业和信息化局绿色制造试点示范管理暂行办法》的通知
- [work] about technical architecture
- What is the breakthrough point of digital transformation in the electronic manufacturing industry? Lean manufacturing is the key
- lc marathon 7.26
猜你喜欢

See "sense of security" in uncertainty Volvo asked in 2022

generic paradigm
仪表放大器和运算放大器优缺点对比
Principle of MOS tube to prevent reverse connection of power supply

Code coverage statistical artifact -jacobo tool practice

积分运算电路的设计方法详细介绍

STM32 CAN 通信 滤波设置问题

Tencent two sides: @bean and @component are used in the same class, what will happen?

移动端使用vantUI的list组件,多个tab项来回切换时,列表加载多次导致数据无法正常展示

Visual system design example (Halcon WinForm) -10. PLC communication
随机推荐
Notice of Nanshan District Civil Affairs Bureau on carrying out the grade evaluation of social organizations in Nanshan District in 2022
Basic usage of kotlin
[work] about technical architecture
CAN总线的EMC设计方案
一些二进制位操作
NEFU117 素数个数的位数【素数定理】
Unity性能优化------DrawCall
网络设备硬核技术内幕 路由器篇 11 CISCO ASR9900拆解 (五)
lc marathon 7.26
Stm32f103c8t6 drives ssd1306 0.96 "IIC OLED display under Arduino frame
LeetCode 783. 二叉搜索树节点最小距离 树/easy
代码覆盖率统计神器-jacoco工具实战
Tencent two sides: @bean and @component are used in the same class, what will happen?
STM32 can -- can ID filter analysis
NEFU118 n! How many zeros are there after [basic theorem of arithmetic]
Wechat applet realizes music search page
LeetCode 81. 搜索旋转排序数组 II 二分/medium
网络设备硬核技术内幕 路由器篇 (10) CISCO ASR9900拆解 (四)
lc marathon 7.26
Kubernetes CNI 分类/运行机制