Handle JavaScript Dialogs and Alerts
Some web sites use JavaScript to present dialog boxes or alert messages. You can configure Web Connector to handle these. The connector automatically dismisses any dialog that you do not handle.
The following example handles a dialog box on a page named prompt.htm
. Web Connector responds in the same way as a person who enters the text "Here is my response" and clicks the "OK" button.
[MyTask] ... JsDialogSections=JavaScriptDialog0 [JavaScriptDialog0] JsDialogUrlRegex=.*/prompt.htm JsDialogPromptText=Here is my response JsDialogAccept=TRUE
For more information about the configuration parameters that you can use to handle JavaScript dialog boxes, refer to the Web Connector Reference.