0

I am using Robot Framework for test automation. Recently I upgraded my Chrome browser to the latest version, V 57.0 Since then, I am unable to execute my test scripts on Chrome. The webpage opens up and navigates until Login page, the cursor focus is set on Username field and then it just keeps on trying for few seconds until i receive an error saying:

 [ WARN ] Keyword 'Capture Page Screenshot' could not be run on
   failure: WebDriverException: Message: 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.133)   (Driver info:
   chromedriver=2.24.417431
   (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT
   10.0.10586 x86_64)

I have no extensions installed in the browser.

Also followed up a similar post here It just mentions about removing your extensions, which I already did.

Thanks

Community
  • 1
  • 1
Vikram
  • 1
  • 1
  • 3

2 Answers2

0

EDIT: Always make certain you are using current and compatible versions of Chromedriver. I always suspect this when the problems show up at the element level. The driver has to be updated a lot as the browser evolves. In your case, you've indicated a current Chromedriver is a solution. Note that this solution generalizes to all browsers.

If the problem were more related to window sizing/resizing, it might be due to the fact that selenium is trying to use an extension to perform a windowing function. Issues with running headless... This assumes you are running headless.

Solution is likely to rework the test for headless runs, or run else try a real browser.

Steve Harris
  • 306
  • 2
  • 4
  • I could see the browser opening and doing the actions as per the test script until login page, so I am sure it is not running headless. Though I updated the chromedriver.exe and replaced the old chromedriver.exe file located under C:\Python27\Lib with the new one and that worked for me :) – Vikram Mar 30 '17 at 02:27
0

Your chromedriver is not latest as said in your error message (Driver info: chromedriver=2.24.417431). Latest available chromedriver version is V2.28

Use latest available Chrome Drivers and you will be all good.

Mark +1 if this answer is useful to you.

Community
  • 1
  • 1
CSharp
  • 1,573
  • 2
  • 14
  • 25