Watin tests can be run to run with IE hidden from view by setting the MakeNewIeInstanceVisible flag. This is true by default.
In the candidate for the release of WatiN 2 IE you can hide:
WatiN.Core.Settings.MakeNewIeInstanceVisible = false;
I have not tested previous versions of WatiN, but releasenotes for version 1.2.0.4 explains this function for this version:
By default, WatiN tests make created instances of Internet Explorer visible to the user. You can run your test invisible by changing the following setting. Keep in mind that HTMLDialogs and> all pop-ups will be shown, even if you set this parameter to false (this is the default) behavior of Internet Explorer, which cannot be suppressed at present).
IE.Settings.MakeNewIeInstanceVisible = false; // default is true
John kane
source share