Function: getDialogButtons()
getDialogButtons(
page,dialogId?):Promise<readonlyDialogButtonInfo[]>
Defined in: src/modules/dialog.ts:495
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.
Intent
List all buttons available in a dialog for inspection or custom interaction.
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');