Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ChromeDriver error "unknown error: cannot get automation extension"

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.

like image 496
Emanuele Ciriachi Avatar asked Feb 13 '17 12:02

Emanuele Ciriachi


2 Answers

You need the latest version of chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads

This is needed for chromedriver version 57+

I was having this same issue. Once I updated the chromedriver version everything worked again.

like image 75
Jack Avatar answered Oct 01 '22 03:10

Jack


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.

like image 36
Kent Aguilar Avatar answered Oct 01 '22 03:10

Kent Aguilar