| || |
programmatically make sure that Page has been load
For example I would like to measure response time for www.yahoo.com. I recorded the script but is there a way to make sure programmatically that page has been loaded successfully. Pointer to code or function would help.
Re: programmatically make sure that Page has been
In order to make sure that page has been loaded successfully u have 2 write a function that searches for the string that is contained in the response of the request that is made..
say if u want to view the source of the request u made.. then u can view the source by printing document.wlSource function jus after the wlhttp.get request.. in that way after the source is retrieved.. u have 2 write a function to check the string that shud be given as argument is present in the source and if in case it fails 2 find the string then the page loaded is incorrect..
also make sure that string that u give must be unique to that page...