Chrome自动化扩展锁定时运行Selenium测试用例

Chrome automation extension locked when running Selenium test case

本文关键字:运行 Selenium 测试用例 定时 锁定 自动化 扩展 Chrome      更新时间:2023-09-26

我正面临一个在Google Chrome上运行我的测试用例的问题。警告是:谷歌Chrome自动扩展锁定。我正在使用Selenium web驱动程序来自动化我的测试用例,它在Firefox上运行没有任何问题。

此消息发生在RIDE;

WebDriverException: Message: unknown error: unable to discover open
pages   (Driver info: chromedriver=2.16.333243
(0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.0
x86_64)
20151008 14:19:31.499 :  FAIL : AttributeError: 'NoneType' object has
no attribute 'close'

这个问题有什么解决办法吗?

从下面的链接更新您的ChromeDriver并使用最新的Chrome二进制文件:-

http://chromedriver.storage.googleapis.com/index.html

试试这个:-

将Windows电源选项中的"关闭显示后"设置为"从不"