Search code examples
c#watinmaximize-window

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.


Solution

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