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
Many thanks for blogging this – it was driving me nuts!
Thanks for the info. I thought it might be helpful to note that I have my Visual Studio 2008 shortcut set to ‘Run as Administrator’, but it would not work. I had to actually right-click the shortcut and say ‘Run as Administrator’ for this to work..
I am getting the same error in XP. Any resolution of that….