How to Maximize window in chrome using webDriver (python)

Naveen Subramani picture Naveen Subramani · Aug 31, 2012 · Viewed 123k times · Source

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!

Answer

Janek Królikowski picture Janek Królikowski · Aug 31, 2012

You could use ChromeOptions and set suitable argument:

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