“cannot get automation extension” error with chrome version: 57.0.2987.98

Mithun Shreevatsa picture Mithun Shreevatsa · Mar 15, 2017 · Viewed 15k times · Source

chrome version : 57.0.2987.98 m (64-bit)

"protractor": "4.0.11",
"protractor-console-plugin": "0.1.1",
"protractor-jasmine2-html-reporter": "0.0.6",
"protractor-notify-plugin": "1.0.0",

protractor failed to launch chrome with the following error:

 unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.98)
  (Driver info: chromedriver=2.26.436362 (5476ec6bf7ccbada1734a0cdec7d570bb042aa30),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.10 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'

Answer

Mikhail Romanov picture Mikhail Romanov · Mar 16, 2017

You are using incompatible versions of chromedriver=2.26.436362 and chrome=57.0.2987.98.

As per Chrome driver release notes the error is fixed in ver 2.28 so you should upgrade your Chrome driver (or downgrade the Chrome browser).

upd: if you use angular/webdriver-manager to run Selenium server then you can achieve this by running the following commands:

webdriver-manager update --versions.chrome=2.28
webdriver-manager start --versions.chrome=2.28