I am trying to start the Chrome browser using a single tab window using this C # code:
Process process = new Process(); process.StartInfo.FileName = "chrome"; process.StartInfo.Arguments = url + " --new-window --window-size=640,480"; process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized; process.Start();
A new window opens, but the size does not match the size that I passed as an argument. Does the chrome command switch "--window-size = x, y" work?
Is there any other way available for this purpose.
source share