I''m building some Jave/Junit Selenium tests to work with both Chrome and Firefox.
I can't find any info on how to start the Firefox browser window in a maximised state. With Chrome I can use ChromeOptions, like:
anOptions.addArguments("--start-maximized");
I can't find any way to make the same thing happen for Firefox and FirefoxOptions.
Any suggestions?
For python
with Firefox
you can use:
driver = Firefox()
driver.maximize_window()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With