ChromeDriver错误“未知错误:无法获得自动化扩展" [英] ChromeDriver error "unknown error: cannot get automation extension"
问题描述
自2月7日以来,我所有的测试均以相同的错误失败;日志条目显示为:
Since the 7th of February all my tests are failing with the same error; the log entry reads:
RESPONSE MaximizeWindow unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: chrome=57.0.2987.21)
我不确定这是否是由Chrome更新或其他原因引起的-消息是否足够模糊.
I'm not sure if this is caused by a Chrome update or something else - the message is vague enough as it is.
编辑:我正在使用C#和最新的Chromedriver.
EDIT: I am using C#, and the latest Chromedriver.
推荐答案
您需要最新版本的chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads
You need the latest version of chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads
chromedriver 57+版需要此
This is needed for chromedriver version 57+
我遇到了同样的问题.一旦我更新了chromedriver版本,一切都会恢复.
I was having this same issue. Once I updated the chromedriver version everything worked again.
这篇关于ChromeDriver错误“未知错误:无法获得自动化扩展"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!