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

    Function getDialogButtons

    • Ai

      Returns all buttons within a dialog (beginButton, endButton, and buttons aggregation).

      Parameters

      • page: DialogPage

        Playwright Page (or compatible subset).

      • OptionaldialogId: string

        The UI5 control ID of the dialog. If omitted, uses the topmost open dialog.

      Returns Promise<readonly DialogButtonInfo[]>

      Array of button information objects.

      ui5.dialog.getButtons

      List all buttons available in a dialog for inspection or custom interaction.

      Returns an array of button objects with id, text, and type (empty array if no buttons).

      Returns beginButton, endButton, and all buttons from the aggregation. If no dialogId is given, uses the topmost open dialog.

      sap.m.Dialog — getBeginButton(), getEndButton(), getButtons()

      Discover available actions in a dialog before deciding which button to press.

      const buttons = await getDialogButtons(page, 'confirmDialog');