Homepage | About Me | Testing ASP.net Book | Best Blog Posts | Personal Projects | Follow me on Twitter | GitHub | SlideShare | RSS
Blog.BenHall.me.uk

WatiN and Vista

Friday, November 30, 2007

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

Technorati Tags: ,,

Labels: , ,

Blogger comments

At 2:14 PM, Anonymous PaulT said...
Many thanks for blogging this - it was driving me nuts!    
At 8:07 AM, Blogger Wasatch Wizard said...
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..    
At 10:41 PM, Blogger Prabhakar said...
I am getting the same error in XP. Any resolution of that....