How to check if page is fully loaded using Chrome
I am new to Chrome + UTF, and need to check if page is fully loaded in Chrome 43, using UTF 12.
Following statement works on IE, but not Chrome:
Status = Browser(BrowserName).Object.Document.ReadyState="c omplete"
Hopefully someone more familiar with UFT tell you how.
I can tell you up front, you cannot rely on any property that's not under the PageObject to be consistent between cross browsers. I'd probably do a check on the Body tag. Usually the first thing that gets rendered after the HTML is downloaded (the document ready event) is the page body.
Thanks for quick reply and suggestion; works on the page level:
Status = Browser(BrowserName).Page("title:=.*").Object.Read yState
Yes. Never go with only the Ready State of browser.
1. you can check for an element in the upcoming page and wait until loaded
2. You can use the Loading... element or image and wait until loaded
Also ensure to use .Object.Style.display or height property because application with static source code will return exists TRUE even it is not on screen.
Check this link for example:
Test Automation Ecstasy: Handling objects not visible on screen
Last edited by scsvel; 06-04-2015 at 12:13 PM.
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one.