title: Selenium WebDriverException Error when trying to save screenshot (Python 3.6)
body: <p>I am trying to save a screenshot from a website using <code>Selenium</code> with Python 3.6 (on Windows 10). When I use the <code>get_screenshot_as_file()</code> or <code>get_screenshot_as_png()</code> functions, I always get the following exception:</p>
  
  <blockquote>
    <p>WebDriverException: unknown error: cannot get automation extension
    from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html</p>
    
    <p>(Session info: chrome=60.0.3112.90)</p>
    
    <p>(Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.1.7601 SP1 x86_64)</p>
  </blockquote>
  
  <p>For example:</p>
  
  <pre><code>driver = webdriver.Chrome()
  ref = 'http://google.com'
  driver.get(ref)
  driver.get_screenshot_as_png()
  </code></pre>
  
  <p>Is there a workaround, or another way to save the entire page as an image?</p>