Wednesday 25 June 2008

WatIN - Timing out waiting for my Page to load

I was scratching my head with this one on my 1st Day of teaching myself WatIN! Basically, I was waiting for my page to load, & Visual Studio was blowing up after 30 Seconds with a Timeout. Well, you can indeed override the Default of 30 seconds by using WaitForComplete = XX.

IE.Settings.WaitForCompleteTimeOut = XX
ie.Frame(Find.ByName("menu")).Link(Find.ByTitle("MyLink")).Click();
ie.WaitForComplete();

No comments: