Function: waitForDialogClosed()
waitForDialogClosed(
page,dialogId,options?):Promise<void>
Defined in: src/modules/dialog.ts:447
Ai
Waits for a specific dialog to be closed.
Parameters
page
DialogPage
Playwright Page (or compatible subset).
dialogId
string
The UI5 control ID of the dialog.
options?
Timeout and polling options.
Returns
Promise<void>
Intent
Wait until a specific dialog is no longer open.
Guarantee
On success, the dialog's isOpen() returns false or the control no longer exists.
Ai Context
Polls isOpen() until false or timeout. Use after confirmDialog() or dismissDialog() to ensure the dialog has fully closed before proceeding.
Sap Module
sap.m.Dialog — isOpen() polling
Business Context
Ensure dialog closure is complete before continuing with test assertions.
Throws
ControlError if the dialog is still open after the timeout.
Example
await waitForDialogClosed(page, 'confirmDialog');