Stopping a load on a web window

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Stopping a load on a web window

Post by fthomas » Fri Dec 03, 2010 5:33 pm

Good day!

I'm trying to wait for a window to finish loading, but there are times when it is pulling remote ads and the window never finishes, so my script gets hung at an IE_WAIT>%IE[0],r command.

Now, is there any way to have a difinitive timeout set on the wait command and if the time out is struck, it will stop loading the page and then continue the script?

I did try just removing the wait command in put in a manual Wait>30 but when the wait finishes, if the page is still trying to complete, I'll get errors on the next IE_ContainsText> command that is looking for something on the page.

Thanks!

Frank

fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Bump

Post by fthomas » Tue Dec 07, 2010 8:01 pm

Bumping thread to see if there is an answer to my quesiton...

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

Post by Marcus Tettmar » Wed Dec 08, 2010 7:42 am

As you have discovered if there are lots of continuous page loads then using IE_Wait will end up waiting constantly.

My personal choice would be to use WaitScreenImage or WaitScreenText.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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