Skip to main content
Version: 1.x

Function: isDialogOpen()

isDialogOpen(page, dialogId): Promise<boolean>

Defined in: src/modules/dialog.ts:282

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.

Intent

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

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');