Termininja Termininja - 3 months ago 33
C# Question

How to maximize browser window using WatiN?

I'm trying to maximize the browser window opened by WatiN:

var browser = new IE();
browser.SizeWindow(width, height);


but I don't know how to set width and height to my screen size.

Answer
browser.ShowWindow(NativeMethods.WindowShowStyle.Maximize);