mikebeargie

Calc for determining if web viewer is loading?

Discussion created by mikebeargie Expert on Mar 27, 2013
Latest reply on Mar 27, 2013 by mikebeargie

I'm putting together a fairly extensive web scraping toolkit (plan to release later to developers for reference), and am wondering if anyone knows if there's a way to test the web viewer to see if a page has loaded all the way (IE loading/progress bar completed)?

 

I was thinking that something like this in a script would work:

 

set webviewer URL

Loop

set variable $code | GetLayoutObjectAttribute("webviewer" ; "Content")

Exit loop if ( patterncount ($code ; "</html>") > 0 )

pause 1 second

end loop

continue script

 

But that's far from elegant, and I figure someone's dealt with this problem before so I'd try on technet to see.

 

Anyone have suggestions?

Outcomes