How to resize/maximize Firefox window during launching Selenium Remote Control?
Try the windowMaximize command:
selenium.windowMaximize();
You can also set a specific width and height using the following command:
selenium.getEval("window.resizeTo(X, Y); window.moveTo(0,0);")
Where X is the width and Y is the height.
This works for me. All the other solutions didn't work in FF7.
WebDriver driver = ((WebDriverBackedSelenium) selenium).getWrappedDriver();driver.manage().window().setPosition(new Point(0, 0));driver.manage().window().setSize(new Dimension(1920, 1080));
You can do the following:
page.driver.browser.manage.window.maximize