title: How to set window size using phantomjs and selenium webdriver in python
body: <p>I'm trying to get a full sized browser screenshot with phantomjs driven by python webdriver . right now my screenshot is measured at 927 x 870, I'd like to reset it. I have tried:</p>
  
  <pre><code>driver.manage().window().setSize(new Dimension(1400,1000))
  </code></pre>
  
  <p>based on <a href="https://groups.google.com/forum/#!msg/phantomjs/f29lxBQNLqY/_Pyi7j9EEVQJ" rel="nofollow noreferrer">this source</a>, but this is giving syntax errors. </p>
  
  <p>How can I do this?</p>