title: Chrome - org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension at driver.manage().window().maximize();
body: <p>I am stuck with a very unusual kind of error thrown by Chrome Browser</p>
  
  <p>When I try to do maximize chrome with below line of code </p>
  
  <pre><code>driver.manage().window().maximize();
  </code></pre>
  
  <p>I am getting below error </p>
  
  <pre><code>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
  </code></pre>
  
  <p>By going through this <a href="https://stackoverflow.com/questions/42944775/org-openqa-selenium-webdriverexception-unknown-error-cannot-get-automation-ext">example</a> I did the below things</p>
  
  <pre><code>1. Updated Chrome driver to latest i.e 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 workspace
  </code></pre>
  
  <p>but nothing helped so I used </p>
  
  <pre><code>    ChromeOptions options = new ChromeOptions();
      options.addArguments("start-maximized");
      driver = new ChromeDriver();
  </code></pre>
  
  <p>it worked and Chrome driver showed no error <strong>but</strong> whenever I execute some piece of code like filling a form or clicking some button after that it still throws the above error after some time.</p>