robotframework出现WebDriverException: Message: unknown error: cannot get automation extension

在使用robotframework的ride执行测试用例时遇到WebDriverException错误,具体信息为'unknown error: cannot get automation extension'。错误源于chromedriver版本与Chrome浏览器版本不匹配。解决方案是确定Chrome版本(例如80.0.3987.132),然后从http://chromedriver.storage.googleapis.com/index.html下载对应版本的chromedriver,并替换原有的驱动,从而解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ride中执行用例时报错

WebDriverException: Message: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: chrome=80.0.3987.132)
(Driver info: chromedriver=2.28.455520
(cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 6.1.7601 SP1 x86_64)

在这里插入图片描述

分析错误应该是chromedriver与chrome版本不匹配导致的

重新下载与chrome版本对应的chromedriver,下载链接
http://chromedriver.storage.googleapis.com/index.html

我的chrome版本是80.0.3987.132,所以我下载这个文件夹中的
在这里插入图片描述
下载后替换掉原来的就可以了
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值