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
Stopping a load on a web window
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?