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:
driver = webdriver.Firefox();
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:
profile = webdriver.FirefoxProfile();
driver = webdriver.Firefox(profile);
But I don't know what foo would be, and I can't figure out where the docs are.
Q1: Is there a way to set width/height at instantiation?
Q2: Where are the reference docs listing all keys usable by profile.set_preference?