title: Selenium or Watir Webdriver, how to save resized screenshot?
body: <p>I try to get a resized 400x400 screenshot of google. I try this both in Selenium and Watir with no success.</p>
  
  <pre><code>require 'watir-webdriver'
  b = Watir::Browser.new
  b.goto 'google.com'
  b.window.resize_to(400,400)
  b.driver.save_screenshot("screenshot.jpg")
  </code></pre>
  
  <p>I always get the screenshot with the original browser size. </p>
  
  <p>Any idea how can I save it resized to 400x400?</p>