Forum Discussion

aceishigh's avatar
aceishigh
Contributor
13 years ago

Foolproof way to wait for page to fully load?

Hi All,

I'm using TestComplete 9.1 to automate a web product that uses all the major browsers.

I'm currently using the page.Wait method to wait for a web page to fully load before trying to access web controls. However, when an ajax spinning loader is in progress, it doesn't seem to work. I'm guessing this is because only part of a web page is being refreshed using ajax instead of the entire document.

Is there a bullet-proof way to make sure the web page is fully loaded before attempting to access controls?

Thnaks,

John