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

    Function confirmDialog

    • Ai

      Confirms a dialog by pressing its begin button or a button matching common confirm labels.

      Parameters

      • page: DialogPage

        Playwright Page (or compatible subset).

      • Optionaloptions: FindDialogOptions & { buttonText?: string }

        Options to filter which dialog and optionally specify a custom button text.

      Returns Promise<void>

      ui5.dialog.confirm

      Confirm (accept) the topmost dialog by pressing its primary action button.

      On success, the dialog's begin button or a confirm-label button has been pressed.

      Multi-step dialog confirmation:

      1. Execute the action that triggers the dialog
      2. await waitForDialog(page, { title: 'Confirm' })
      3. await confirmDialog(page)
      4. await waitForDialogClosed(page, dialogId)

      Tries beginButton first, then scans buttons for labels: OK, Yes, Confirm, Save, Accept, Submit. Pass buttonText option to target a specific non-standard button.

      sap.m.Dialog — beginButton / buttons aggregation / firePress()

      Confirm SAP dialogs (save confirmation, delete confirmation, approval dialogs).

      ControlError if no open dialog or confirm button is found.

      await confirmDialog(page);