How to set window size using Chrome options using pytest?

How to set window size using Chrome options using pytest?

Hi Devan!

To set the window size using Chrome options in pytest, you can use the below command -

ChromeOptions op = new ChromeOptions();

op.add_Arguments("window-size=500,250");