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 "ONERRORDIALOG"
(16 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
By default the settings are BUTTON=YES and CONTINUE=YES. These settings are active even without an ONERRORDIALOG in your macro. | By default the settings are BUTTON=YES and CONTINUE=YES. These settings are active even without an ONERRORDIALOG in your macro. | ||
− | === Syntax === | + | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]] [[Image:Cr-icon.png|Chrome]]=== |
− | ONERRORDIALOG BUTTON=(YES|NO) CONTINUE=(YES|NO) | + | ONERRORDIALOG BUTTON=(YES|NO) CONTINUE=(YES|NO) |
+ | |||
+ | |||
+ | [[Image:Report-javascript-error.png|none|thumb|350px| | ||
+ | Extracting the text of a Javascript error message.]] | ||
=== Parameters === | === Parameters === | ||
Line 11: | Line 15: | ||
*:Specifies which button is clicked. | *:Specifies which button is clicked. | ||
*CONTINUE | *CONTINUE | ||
− | *:Specifies if the macro is continued if such an error dialog comes up. | + | *:Specifies if the macro is continued if such an error dialog comes up. Use CONTINUE=YES if your main focus is web automation and '''use CONTINUE=NO to detect Javascript errors on websites'''. This is useful for website monitoring and web testing. |
+ | |||
+ | === Remarks === | ||
+ | |||
+ | * In iMacros Browser and Internet Explorer, ONSCRIPTERROR can also be used as synonym for ONERRORDIALOG. | ||
+ | |||
+ | * In Internet Explorer, to detect script errors using CONTINUE=NO, the option "Display a notification about every script error" (Internet Options, Advanced tab, under Browsing) should be ckecked. | ||
+ | |||
=== Disable Script Debugging === | === Disable Script Debugging === | ||
− | You can avoid Javascript error dialogs if you select "Disable Script Debugging" in | + | You can avoid Javascript error dialogs if you select "Disable Script Debugging" in Internet Explorer settings. These settings are also used by the iMacros Browser. On Internet Explorer, go to Tools/Internet Options, click on the Advanced Tab. Under Browsing you should put check marks at both "Disable script debugging". Remove the check mark for "Display a notification about every script error". |
− | [[Image:Ie- | + | [[Image:Ie-scriptDebugging.gif|left|thumb|300px|Internet Explorer Settings Dialog]] |
+ | <br style="clear:both" /> | ||
+ | |||
+ | === Forum === | ||
+ | Forum posts related to this Wiki topic. | ||
− | + | [http://forum.iopus.com/viewtopic.php?t=3305 Disable Script Debugging in iMacros Browser] | |
− | [http://forum.iopus.com/viewtopic.php?t=3305] | ||
=== Examples === | === Examples === | ||
+ | |||
+ | [[File:Demo-onerror.png|600px|thumb|center|Use CONTINUE=NO to''' detect Javascript errors''' on websites. This is useful for website monitoring and web testing.]] | ||
=== See Also === | === See Also === | ||
− | [[ONCERTIFICATEDIALOG]], [[ONDIALOG]], [[ONDOWNLOAD]], [[ONLOGIN]], [[ONSECURITYDIALOG]], [[ONWEBPAGEDIALOG]] | + | [[Browser_Automation#Page_Errors|Page Errors]], [[!EXTRACTDIALOG]], [[Demo-OnError]], [[ONCERTIFICATEDIALOG]], [[ONDIALOG]], [[ONDOWNLOAD]], [[ONLOGIN]], [[ONSECURITYDIALOG]], [[ONWEBPAGEDIALOG]] |
Revision as of 10:45, 16 August 2017
If a page script error occurs on a webpage Internet Explorer opens an error dialog. This command handles such a dialog so your macros are not interrupted by script errors. By default the settings are BUTTON=YES and CONTINUE=YES. These settings are active even without an ONERRORDIALOG in your macro.
Syntax
ONERRORDIALOG BUTTON=(YES|NO) CONTINUE=(YES|NO)
Parameters
- BUTTON
- Specifies which button is clicked.
- CONTINUE
- Specifies if the macro is continued if such an error dialog comes up. Use CONTINUE=YES if your main focus is web automation and use CONTINUE=NO to detect Javascript errors on websites. This is useful for website monitoring and web testing.
Remarks
- In iMacros Browser and Internet Explorer, ONSCRIPTERROR can also be used as synonym for ONERRORDIALOG.
- In Internet Explorer, to detect script errors using CONTINUE=NO, the option "Display a notification about every script error" (Internet Options, Advanced tab, under Browsing) should be ckecked.
Disable Script Debugging
You can avoid Javascript error dialogs if you select "Disable Script Debugging" in Internet Explorer settings. These settings are also used by the iMacros Browser. On Internet Explorer, go to Tools/Internet Options, click on the Advanced Tab. Under Browsing you should put check marks at both "Disable script debugging". Remove the check mark for "Display a notification about every script error".
Forum
Forum posts related to this Wiki topic.
Disable Script Debugging in iMacros Browser
Examples
See Also
Page Errors, !EXTRACTDIALOG, Demo-OnError, ONCERTIFICATEDIALOG, ONDIALOG, ONDOWNLOAD, ONLOGIN, ONSECURITYDIALOG, ONWEBPAGEDIALOG