ONWEBPAGEDIALOG
Top  Previous  Next


Web page dialogs are similar to Javascript dialogs, except they display HTML content. 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. 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. The ONWEBPAGEDIALOG command must appear before the (in most cases) TAG command that triggers the popup.
During replay,
ONWEBPAGEDIALOG KEYS={WAIT<SP>2}{CLOSE} is active by default to close unwanted ad dialogs.

Syntax

ONWEBPAGEDIALOG KEYS=some_keys


Parameters

KEYS
The series of key strokes send to the dialog. Please use <SP> as escape character for whitespaces and <BR> for line breaks. Except for the alphanumeric (a-z, A-Z, 0-9 and so on) keys, the following special keys and commands are supported (the curly brackets are mandatory):
   {TAB}
   
Enter a tabulator.
   {ENTER}
   Hit Enter key.
   {CLOSE}
   
Close the dialog
   {WAIT<SP>Seconds}
   Wait for
Seconds seconds before proceeding with the next key stroke.
Commands can be repeated by adding a number to it. For example
{tab<SP>3} is the same as writing {tab}{tab}{tab}.


Examples

Related example macro: Demo-OnWebPageDialog

If you want to close all upcoming dialogs immediately, use

ONWEBPAGEDIALOG KEYS={CLOSE}

Suppose a dialog comes up that asks you to enter your name and country, use

ONWEBPAGEDIALOG KEYS=Frank<SP>Miller<BR>USA{ENTER}

See Also

ONCERTIFICATEDIALOG, ONDIALOG, ONDOWNLOAD, ONERRORDIALOG, ONLOGIN, ONSECURITYDIALOG




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