The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "!ERRORIGNORE"
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Tells iMacros to ignore errors. The replay of macros continues even if one or more commands fail. | Tells iMacros to ignore errors. The replay of macros continues even if one or more commands fail. | ||
− | === Value [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]]=== | + | === Value [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]] [[Image:Cr-icon.png|Chrome]]=== |
YES|NO | YES|NO | ||
Line 11: | Line 11: | ||
'''Internal''' means that the iMacros program itself sets the value of the variable during program run. [[SET]] means that the user can set this value via the [[SET]] command inside a macro. | '''Internal''' means that the iMacros program itself sets the value of the variable during program run. [[SET]] means that the user can set this value via the [[SET]] command inside a macro. | ||
+ | |||
+ | Tip: If you use this command to skip not-existing (only sometimes existing) web page elements (TAG), then it can be useful to reduce the default time iMacros waits for a missing TAG to appear (6 seconds). Use the [[!TIMEOUT_STEP]] paramter for this. | ||
=== Examples === | === Examples === | ||
+ | |||
+ | SET !TIMEOUT_STEP 1 | ||
+ | SET !ERRORIGNORE YES | ||
+ | 'Commands that fail sometimes (element missing) | ||
+ | TAG... | ||
+ | TAG... | ||
+ | 'Restore defaults | ||
+ | SET !ERRORIGNORE NO | ||
+ | SET !TIMEOUT_STEP 6 | ||
+ | |||
+ | === Related Forum Posts === | ||
+ | |||
* [http://forum.iopus.com/viewtopic.php?f=11&t=5723 "OR" function for buttons?] | * [http://forum.iopus.com/viewtopic.php?f=11&t=5723 "OR" function for buttons?] | ||
* [http://forum.iopus.com/viewtopic.php?f=2&t=5843 Use one of two links (depending on which one is there)] | * [http://forum.iopus.com/viewtopic.php?f=2&t=5843 Use one of two links (depending on which one is there)] | ||
Line 19: | Line 33: | ||
=== See Also === | === See Also === | ||
− | [[Command_Reference#Error_Handling|Error Handling]], [[TIMEOUT_STEP]] | + | [[Command_Reference#Error_Handling|Error Handling]], [[!TIMEOUT_STEP]] |
Revision as of 13:37, 10 October 2012
Tells iMacros to ignore errors. The replay of macros continues even if one or more commands fail.
Value
YES|NO
Set By
[ ] Internal
[X] SET
Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.
Tip: If you use this command to skip not-existing (only sometimes existing) web page elements (TAG), then it can be useful to reduce the default time iMacros waits for a missing TAG to appear (6 seconds). Use the !TIMEOUT_STEP paramter for this.
Examples
SET !TIMEOUT_STEP 1 SET !ERRORIGNORE YES 'Commands that fail sometimes (element missing) TAG... TAG... 'Restore defaults SET !ERRORIGNORE NO SET !TIMEOUT_STEP 6
Related Forum Posts
- "OR" function for buttons?
- Use one of two links (depending on which one is there)
- Ignore the error and keep runing code