How to maximize the browser window using Pytest?

How can I maximize the browser window using Pytest?

Hi Helen,

You need to use the below command for maximizing the window in Pytest:

driver.get("https://www.amazon.in

driver.maximize_window()