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.
Post Reply
Hannes, Tech Support

Workaround: iMacros not recognizing page being fully loaded

Post by Hannes, Tech Support » Wed Aug 20, 2008 9: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
Post Reply