Python – Maximize Chrome Window Using WebDriver

pythonseleniumselenium-chromedriver

Is there a way to maximize the chrome browser window using python selenium WebDriver?

Note: I am using Chrome Driver 23.0
Any solution on this would be greatly appreciated!

Best Answer

You could use ChromeOptions and set suitable argument:

options = ChromeOptions()
options.add_argument("--start-maximized")
driver = ChromeDriver(options)
Related Question