Search code examples
protractorwebdriver-manager

Protractor/webdriver-manager error: "Cannot get automation extension"


I am running protractor tests, and within the last couple days started getting this error:

WebDriverError: unknown error: cannot get automation extension 
from unknown error: page could not be found: chrome extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html

After some research, I tried updating protractor but I was already on the latest version (5.1.1). I checked to see if my chromedriver and chrome version are compatible and it looks like they are. I also updated my webdriver-manage to 12.0.4 but I still have the same problem.

-My chrome version is: 57.0.2987.133 (Official Build) (64-bit)

-protractor is: 5.1.1

-webdriver-manager is: 12.0.4

-chromedriver version: 2.2.6


Solution

  • https://github.com/SeleniumHQ/selenium/issues/3508

    According to the comment from "JimmyKane" installing chromedriver v2.28 and removing the browser.manage().window().setSize() fixed it.