Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Function waitForDialogClosed

    • Ai

      Waits for a specific dialog to be closed.

      Parameters

      • page: DialogPage

        Playwright Page (or compatible subset).

      • dialogId: string

        The UI5 control ID of the dialog.

      • Optionaloptions: DialogOptions

        Timeout and polling options.

      Returns Promise<void>

      ui5.dialog.waitForClosed

      Wait until a specific dialog is no longer open.

      On success, the dialog's isOpen() returns false or the control no longer exists.

      Polls isOpen() until false or timeout. Use after confirmDialog() or dismissDialog() to ensure the dialog has fully closed before proceeding.

      sap.m.Dialog — isOpen() polling

      Ensure dialog closure is complete before continuing with test assertions.

      ControlError if the dialog is still open after the timeout.

      await waitForDialogClosed(page, 'confirmDialog');