How to do basic conditional error handling?

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 4
Joined: Wed Nov 05, 2014 12:57 pm

How to do basic conditional error handling?

Post by JLMacro » Mon Nov 10, 2014 2:54 pm

Is there any way in iMacros to do basic conditional error handling? For example, to perform an action, check a status code and conditionally do an alternative action depending on the code?

Here's an example in a macro I use to save tab pages. For some web pages, the first method fails and in such cases, I want to resort to the alternative method - the one commented out:

Code: Select all

SAVEAS TYPE=HTM FOLDER="U:\jerry\music\info" FILE={{!EXTRACT}}_info

'If the above approach triggers an error on a given web page, I then want to do this alternative:
'SAVEAS TYPE=HTM FOLDER="U:\jerry\download\media\CD-RAR\SessionPages" FILE=+_info

Post Reply