title: How do I set browser width and height in Selenium WebDriver?
body: <p>I'm using Selenium WebDriver for Python.
  I want instantiate the browser with a specific width and height. So far the closest I can get is:</p>
  
  <pre><code>driver = webdriver.Firefox()
  driver.set_window_size(1080,800)
  </code></pre>
  
  <p>Which works, but sets the browser size after it is created, and I want it set at instantiation. I'm guessing there is an approach along the lines of:</p>
  
  <pre><code>profile = webdriver.FirefoxProfile();
  profile.set_preference(foo, 1080)
  driver = webdriver.Firefox(profile)
  </code></pre>
  
  <p>But I don't know what <code>foo</code> would be, and I can't figure out where the docs are.</p>
  
  <p><strong>Q1:</strong> is there a way to set width / height at instantiation?</p>
  
  <p><strong>Q2:</strong> Where are the reference docs listing all keys usable by <code>profile.set_preference</code>?</p>