Skip to main content
Version: 1.x

Function: getDialogButtons()

getDialogButtons(page, dialogId?): Promise<readonly DialogButtonInfo[]>

Ai

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

Parameters​

page​

DialogPage

Playwright Page (or compatible subset).

dialogId?​

string

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

Returns​

Promise<readonly DialogButtonInfo[]>

Array of button information objects.

Capability​

ui5.dialog.getButtons

Intent​

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

Guarantee​

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

Ai Context​

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

Sap Module​

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

Business Context​

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

Example​

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