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

3
  • 1
    Be sure you have the latest Chromedriver (2.28)CommentedMar 29, 2017 at 23:28
  • Yup, that worked :) Sorry, but read your comment now. Cheers
    – Vikram
    CommentedMar 30, 2017 at 2:29
  • I thought so after thinking about it more. I've edited the answer to reflect this.CommentedMar 31, 2017 at 16:58

2 Answers 2

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.

1
  • 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
    CommentedMar 30, 2017 at 2: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.

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.