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

    Function dismissDialog

    • Ai

      Dismisses (closes) the topmost dialog, or a dialog matching the given title.

      Parameters

      • page: DialogPage

        Playwright Page (or compatible subset).

      • Optionaloptions: FindDialogOptions

        Options to target a specific dialog by title.

      Returns Promise<void>

      ui5.dialog.dismiss

      Close the topmost open dialog without confirming its action.

      On success, the dialog's close() method has been called and UI5 is stable.

      Calls close() on the dialog control. Use for cancelling or dismissing. To confirm a dialog, use confirmDialog() instead.

      sap.m.Dialog — close() method

      Cancel or dismiss SAP dialog overlays (Cancel, Close, X button).

      ControlError if no open dialog is found to dismiss.

      await dismissDialog(page);