title: How do I resize a WebDriverJS browser window?
body: <p>I am using <a href="https://code.google.com/p/selenium/wiki/WebDriverJs">WebDriverJS</a>, the JavaScript bindings for WebDriver, to do some simple frontend testing (driven by nodejs).  However, I'm running into difficulties resizing the window, and <a href="http://selenium.googlecode.com/git/docs/api/javascript/class_webdriver_WebDriver_Window.html">the documentation</a> is just a bit unclear to me.</p>
  
  <pre><code>var webdriver = require('selenium-wedriver');
  
  driver = new webdriver.Builder()
             .withCapabilities(webdriver.Capabilities.chrome())
             .build();
  
  driver.get("http://www.google.com")
  .then(function() {
      driver.Window.setSize(400, 400);  // &lt;-- should resize, does nothing
  })
  // more thenables...
  </code></pre>
  
  <p>Everything works normally and it gives no error, but the browser window does not resize.  Am I referencing this setSize method incorrectly?</p>