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

    Function waitForDialog

    • Ai

      Waits for a dialog to appear in the UI5 static UI area.

      Parameters

      • page: DialogPage

        Playwright Page (or compatible subset).

      • Optionaloptions: FindDialogOptions

        Options to filter by title or control type.

      Returns Promise<DialogInfo>

      Information about the discovered dialog.

      ui5.dialog.waitFor

      Wait for a UI5 dialog to open, optionally filtering by title or type. Use before interacting with any dialog content.

      On success, returns a DialogInfo for the first matching open dialog.

      An action that triggers a dialog must have been executed.

      UI5 dialogs live in sap-ui-static area, not the normal view tree. Always call this before confirmDialog() or dismissDialog() to ensure the dialog is open.

      sap.m.Dialog, sap.m.MessageBox, sap.ui.comp.valuehelpdialog.ValueHelpDialog

      Wait for confirmation dialogs, value help dialogs, or message boxes in SAP apps.

      ControlError if no matching dialog appears within the timeout.

      const info = await waitForDialog(page, { title: 'Confirm Delete' });