WatiN and Vista

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: ,,

3 thoughts on “WatiN and Vista”

  1. 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..

Leave a Reply to PaulT Cancel reply

Your email address will not be published. Required fields are marked *