Skip to main content
Version: 1.x

Function: isDialogOpen()

isDialogOpen(page, dialogId): Promise<boolean>

Ai

Checks whether a specific dialog (by ID) is currently open.

Parameters

page

DialogPage

Playwright Page (or compatible subset).

dialogId

string

The UI5 control ID of the dialog.

Returns

Promise<boolean>

true if the dialog exists and is open, false otherwise.

Capability

ui5.dialog.isOpen

Intent

Check if a known dialog is currently open, by its UI5 control ID.

Guarantee

Returns true if the dialog is open, false otherwise (including when control not found).

Ai Context

Calls isOpen() on the control. Returns false if the control is not found or not open.

Sap Module

sap.m.Dialog — isOpen() check

Business Context

Assert that a dialog has opened or closed after an action.

Example

const open = await isDialogOpen(page, 'confirmDialog');