driver.Manage().Window.Size = new Size code example Example: selenium python maximize window driver.maximize_window()