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.
const buttons = await getDialogButtons(page, 'confirmDialog'); Copy
const buttons = await getDialogButtons(page, 'confirmDialog');
Returns all buttons within a dialog (beginButton, endButton, and buttons aggregation).