ONERRORDIALOG

From iMacros
Jump to: navigation, search

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 iMacros Browser IE Plug-in Firefox Chrome

ONERRORDIALOG BUTTON=(YES|NO) CONTINUE=(YES|NO)


Extracting the text of a Javascript error message.

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".

Internet Explorer Settings Dialog


Forum

Forum posts related to this Wiki topic.

Disable Script Debugging in iMacros Browser

Examples

Use CONTINUE=NO to detect Javascript errors on websites. This is useful for website monitoring and web testing.

See Also

Page Errors, !EXTRACTDIALOG, Demo-OnError, ONCERTIFICATEDIALOG, ONDIALOG, ONDOWNLOAD, ONLOGIN, ONSECURITYDIALOG, ONWEBPAGEDIALOG