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 "ONDIALOG"
(→Syntax) |
|||
Line 3: | Line 3: | ||
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. | 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. | ||
− | === Syntax === | + | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]]=== |
− | ONDIALOG POS=n BUTTON=(YES|NO|CANCEL) [CONTENT=some_content] | + | ONDIALOG POS=n BUTTON=(YES|NO|CANCEL) [CONTENT=some_content] |
=== Parameters === | === Parameters === |
Revision as of 21:27, 26 July 2008
Handles upcoming JavaScript dialogs. 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.
Syntax
ONDIALOG POS=n BUTTON=(YES|NO|CANCEL) [CONTENT=some_content]
Parameters
- POS
- The position of the dialog. On some web pages a few dialogs occur directly after each other. In this case you can specify a specific decision for each dialog (POS=1 is first dialog, POS=2 is second dialog.) The POS statement applies only to dialogs that show directly after each other. This means that several ONDIALOG command with different POS values must occur before another macro command is executed.
- BUTTON
- Specifies which of the available buttons is pressed.
- CONTENT
- The content attribute is used to fill out input forms prompted by JavaScript. (Replace blank spaces by <SP>, like in "Hello<SP>world")
Examples
Example macro: Demo-OnJavascriptDialog
See Also
!EXTRACTDIALOG, ONCERTIFICATEDIALOG, ONDOWNLOAD, ONERRORDIALOG, ONLOGIN, ONSECURITYDIALOG, ONWEBPAGEDIALOG