For Chrome i set settings [‘args’, ‘[–window-size=1920,1020]’]. How this should work for Firefox?
That sounds like it could be a full-screen window so why not just use:
If you want to be more specific, you could use these APIs:
WebDriver driver = DriverFactory.getWebDriver() driver.manage().window().setSize(new Dimension( width_pixels, height_pixels))
Thanks. Works great.
Firefox is opening in full-screen window for me all the time, I want to change it but same as OP it doesn’t work like for chrome with desired capabilites