Workaround: iMacros not recognizing page being fully loaded

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.

Moderator: iMacros Moderators

Workaround: iMacros not recognizing page being fully loaded

by Hannes, Tech Support on Wed Aug 20, 2008 2:21 am

On some pages where certain content is added "on the fly" (e.g. depending on some selection), iMacros might not be able to detect the site being fully loaded, which results in timeout errors on replaying a macro.

Here's how to work around a TAG that leads to such a page (and thus times out on replay).

Code: Select all
' make the macro wait no longer that a few seconds (instead of the default value of 60s)
SET !TIMEOUT 5
' make the macro ignore the timeout that occurs after the !TIMEOUT interval is completed
SET !ERRORIGNORE YES
' now run the "problematic" TAG
TAG POS=... TYPE=... ATTR=...
' reset default settings
SET !TIMEOUT 60
SET !ERRORIGNORE NO
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am

Return to How-To's and useful iMacros: All other topics

Who is online

Users browsing this forum: No registered users and 2 guests

-->