Ai
Waits for a specific dialog to be closed.
Playwright Page (or compatible subset).
The UI5 control ID of the dialog.
Optional
Timeout and polling options.
ui5.dialog.waitForClosed
Wait until a specific dialog is no longer open.
On success, the dialog's isOpen() returns false or the control no longer exists.
Polls isOpen() until false or timeout. Use after confirmDialog() or dismissDialog() to ensure the dialog has fully closed before proceeding.
sap.m.Dialog — isOpen() polling
Ensure dialog closure is complete before continuing with test assertions.
ControlError if the dialog is still open after the timeout.
await waitForDialogClosed(page, 'confirmDialog'); Copy
await waitForDialogClosed(page, 'confirmDialog');
Waits for a specific dialog to be closed.