Need help with the WaitIE function

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

Need help with the WaitIE function

Post by usernamechan » Wed Apr 18, 2007 6:27 pm

I am evaluating WebRecorder. The time it takes to load a page may vary. Is WaitIE used to determine a Web page is finished loading? I see multiple calls to WaitIE. Is it possible to use a While loop?

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay
________
Dream Fund
Last edited by usernamechan on Tue Feb 01, 2011 12:25 pm, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Apr 18, 2007 7:14 pm

WaitIE waits for the page to finish loading. The reason for more than one is that some actions cause multiple page loads (consider frames, Ajax etc).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

Post by usernamechan » Wed Apr 25, 2007 3:07 am

I am testing WebRecorder on a site with frames. I have used multiple WaitIEs. Due to fluctuations with load time and server response time, sometimes the script results in error. Is there a way to check the status of the browser? For instance, once the site finishes loading, the bottom left corner status says "Request Complete". Is it possible to check for that status programmatically?
________
n02 vaporizer
Last edited by usernamechan on Tue Feb 01, 2011 12:27 pm, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Apr 25, 2007 7:34 am

That is exactly what WaitIE does. It waits until all requests are complete and IE is no longer busy.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

Post by usernamechan » Wed Apr 25, 2007 10:15 pm

Sometimes errors do occur when the response time or server stalls. Would putting more WaitIE help?
________
vaporizer pipe

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts