How to set window size using chrome options when using C#- xUnit?

How to set window size using chrome options when using C#- xUnit ?

Hello Anna-prokofieva,

You can do that by passing the argument in the chrome options object as follows:

ChromeOptions capabilities = new ChromeOptions();
capabilities.AddArgument("--window-size=1024,768");