title: Selenium firefox driver take window screenshot(not fullscreen)
body: <p>I have a fully working Python script for taking screenshots of webpages using selenium and the FF driver(windows). </p>
  
  <p>The script is taking full page screenshots instead of let's say 1024x768, which make the process slow. Here is my code:</p>
  
  <pre><code>    driver = webdriver.Firefox()
      driver.set_window_size(1024,768)
      driver.get(url)
      driver.get_screenshot_as_file("%s/%s.png"%(screen_dir,o.netloc))
      driver.close()
  </code></pre>
  
  <p>Any ideas on how to make selenium/firefox take above the fold screenshots and not full page?</p>
  
  <p>Thanks!</p>