Ai
Returns all buttons within a dialog (beginButton, endButton, and buttons aggregation).
Playwright Page (or compatible subset).
Optional
The UI5 control ID of the dialog. If omitted, uses the topmost open dialog.
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'); Copy
const buttons = await getDialogButtons(page, 'confirmDialog');
Returns all buttons within a dialog (beginButton, endButton, and buttons aggregation).