Web Page Dialogs
Top  Previous  Next

Related example macro: Demo-OnWebPageDialog

Web page dialogs are similar to Javascript dialogs, except they display HTML content. Internet Macros can control them.

ONWEBPAGEDIALOG KEYS=Hello{ENTER}{CLOSE}

Since web page dialogs can contain any number of buttons or boxes, you can automate them by sending a specific list to keyboard commands to them. For example: "Hello{ENTER}{<CLOSE}" will enter the word "Hello" on the dialog, press ENTER 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 "popup" in front of the current window.

Commands can be repeated by adding a number to it. For example {tab<SP>3} is the same as writing {tab}{tab}{tab}. And {wait<SP>5} means to wait for five seconds. The "<SP>" tag simply stands for a blank space as if you typed it using the space bar. This is the same notation as <SP> when used with the WINCLICK command.

Important:

The ONWEBPAGEDIALOG command must be reached in the macro before the dialog comes up; before the TAG command that triggers the dialog appears. Internet Macros stores the settings and uses them on the first web page dialog that appears. See also the Demo-WebPageDialog example macro.

So instead of:

TAG POS=1 TYPE=FONT ATTR=TXT:Open<SP>Login<SP>Dialog
ONWEBPAGEDIALOG KEYS=YourName{tab<SP>1}YourPwd{enter}

please use:

ONWEBPAGEDIALOG KEYS=YourName{tab<SP>1}YourPwd{enter}
TAG POS=1 TYPE=FONT ATTR=TXT:Open<SP>Login<SP>Dialog





Page URL http://www.iopus.com/imacros/help/web_page_dialog.htm