Web Connector 12.13

# 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.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Web Connector 12.13

Topic Title: JavaScript Dialog Parameters