ChromeDriver error “unknown error: cannot get auto

2019-01-19 09:59发布

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)

I'm not sure if this is caused by a Chrome update or something else - the message is vague enough as it is.

EDIT: I am using C#, and the latest Chromedriver.

14条回答
走好不送
2楼-- · 2019-01-19 10:36

Suddenly got this error -> Additional information: unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension..

This issue exists even when using ChromeDriver 2.29
What solved it though was removing this line.

driver.Manage().Window.Size = new Size(1024, 768);

A quick fix but really not the one I've been looking for. Would be great to still use the sizing mechanism.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-19 10:36

it supports the higher versions of chrome driver 2.29.

pls. find the latest chrome drivers in http://www.seleniumhq.org/download/

查看更多
登录 后发表回答