Hi everyone, I am stuck with a very unusual kind of errors thrown by Chrome browser
Senario one when i try to maximize chrome with bottom line of code
driver.manage().window().maximize();
I get below the error
org.openqa.selenium.WebDriverException: 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.110) (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10.05 seconds
Looking through this example , I did the following things
1. Updated chrome driver to latest ie 2.28 for my chrome version 57.0.2987.110 (64-bit) 2. uninstalled and re-installed chrome 3. did a project build up in eclipse even created a new worspace
but nothing helped, so I used
ChromeOptions options = new ChromeOptions(); options.addArguments("start-maximized"); driver = new ChromeDriver();
it worked, and the chrome driver did not show an error , but every time I executed some piece of code, for example, filling out a form or clicking on some button, after which it still gives the above error after some time. Can anyone help?
source share