Naveen Subramani Naveen Subramani - 3 months ago 36
Python Question

How to Maximize window in chrome using webDriver (python)

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

You could use ChromeOptions and set suitable argument:

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