JavaScript Dialog Parameters

The parameters in this section configure the connector to handle JavaScript dialogs and alerts.

You can set these parameters in the TaskName section. For example:

[MyTask]
JsDialogUrlRegex=.*/prompt.htm
JsDialogPromptText=Here is my response
JsDialogAccept=TRUE

Alternatively, to use different sections to handle different dialogs, set the JsDialogSections parameter. This allows you to define multiple sections containing the settings. For example:

[MyTask]
...
JsDialogSections=JavaScriptDialog0,JavaScriptDialog1

[JavaScriptDialog0]
JsDialogUrlRegex=.*/prompt.htm
JsDialogPromptText=Here is my response
JsDialogAccept=TRUE

[JavaScriptDialog1]
JsDialogUrlRegex=.*/another_prompt.htm
JsDialogPromptText=Here is my other response
JsDialogAccept=TRUE

Each dialog that the connector encounters is processed using the first section where the values of JsDialogUrlRegex, JsDialogTypeRegex, and JsDialogMessageRegex match the dialog box. The connector automatically dismisses any dialog that you do not handle.