Web Connector 12.13

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

© 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: Handle JavaScript Dialogs and Alerts