There is a Selenium WebDriver command for setting the window size and it has been requested to have a corresponding Selenium2Library keyword.