How to resize/maximize Firefox window during launching Selenium Remote Control?

后端 未结 9 1290
眼角桃花
眼角桃花 2020-12-14 07:47

I am using Selenium Remote Control . During executing the tests the actual Firefox window is so small. I want it full screen so I can see what is happening. How can I maximi

9条回答
  •  悲哀的现实
    2020-12-14 08:22

    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));
    

提交回复
热议问题