Function: getDialogButtons()
getDialogButtons(
page,dialogId?):Promise<readonlyDialogButtonInfo[]>
Defined in: src/modules/dialog.ts:427
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.
Example​
const buttons = await getDialogButtons(page, 'confirmDialog');