Been meaning to post this for a while now but haven’t found the time. When trying out WatiN on my Vista machine I kept receiving the following error message:
WatiN.Core.Exceptions.TimeoutException: Timeout while ‘waiting for main document becoming available’“
Turns out that WatiN and Vista don’t play nicely together and on Vista you will need to disable UAC in order for WatiN to execute correctly.
It kept me guessing for an hour so I thought I would post regarding this matter. Expect more posts on WatiN soon…
UPDATE: Or, if you don’t want to disable UAC, make sure your test runner is running as Administrator