Browser Automation

From iMacros
Revision as of 10:12, 26 April 2007 by Hm (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Dialog Manager

iMacros handles all these dialogs

The Dialog Manager allows you to manage all those pesky dialogs that appear with Internet Explorer from time to time. Because the iMacros Browser emulates Internet Explorer the same dialogs appear in the iMacros Browser too.


Login iMacros Browser IE Plug-in Firefox

Login Dialog

iMacros fills all login dialogs for you using the ONLOGIN command. The password is stored with the method you selected on the Security tab of the Options dialog. More details about the different password storage options can be found here.


Javascript iMacros Browser IE Plug-in Firefox

JavaScript Dialogs

(Related example macro: Demo-OnJavascriptDialog )

iMacros handles all Javascript dialog boxes for you using the ONDIALOG command. You can extract the text of a dialog by adding SET !EXTRACTDIALOG YES to your macro.

Tip: On some pages a new page loads once a button on the dialog is clicked. If you want iMacros to wait for this page to load before continuing please add "WAIT SECONDS=#DOWNLOADCOMPLETE#" after the TAG statement that triggers the dialog box.

Web Page Dialogs iMacros Browser IE Plug-in Firefox

(Related example macro: Demo-OnWebPageDialog)

Web page dialogs are similar to Javascript dialogs, except they display HTML content. iMacros can control them using the ONWEBPAGEDIALOG command. Since web page dialogs can contain any number of buttons or boxes you can automate them by sending a specific list of keyboard commands to them. For example "KEYS=Hello{ENTER}{CLOSE}" will enter the word "Hello" on the dialog, press ENTER key and then close the dialog.

During replay "ONWEBPAGEDIALOG KEYS={WAIT<sp>2}{CLOSE}" is active by default to close unwanted ad dialogs.

Note: Web page dialogs are not normal HTML browser windows. Therefore they do not open in a separate tab, but pop up in front of the current window.

Print iMacros Browser IE Plug-in

(Related example macro: Demo-Print)

The dialog manager works with the print dialog. For more details please see the PRINT command.

Security Dialogs iMacros Browser IE Plug-in Firefox

Security Dialog

Security dialogs can occur on many secure web sites. The iMacros Dialog Manager automatically clicks the security dialog boxes so your macros are not interrupted. This is done using the ONSECURITYDIALOG command.

By default the settings are BUTTON=YES and CONTINUE=YES. These settings are active even without an ONSECURITYDIALOG command in your macro.





Certificates iMacros Browser IE Plug-in

Certificates Dialog

Some secure web pages ask you to select a client side certificate. The dialog manager can do this for you using the ONCERTIFICATEDIALOG command.






Page Errors iMacros Browser IE Plug-in Firefox

Error Dialog

(Related example macro: Demo-OnError)

Page script errors can occur on many web sites for a variety of reasons. The iMacros Dialog Manager automatically clicks the Internet Explorer error dialog boxes so your macros are not interrupted by script errors! This is done using the ONERRORDIALOG command.

By default the settings are BUTTON=YES and CONTINUE=YES. These settings are active even without an ONERRORDIALOG in your macro.