Skip to main content

Function: waitForUI5Stable()

waitForUI5Stable(page, options?): Promise<void>

Defined in: src/core/utils/wait-helpers.ts:95

Waits for SAP UI5 to report zero pending async operations.

Parameters​

page​

WaitPage

Playwright Page (or compatible subset).

options?​

WaitForUI5StableOptions

Wait configuration options.

Returns​

Promise<void>

Remarks​

Uses page.waitForFunction() to poll sap.ui.getCore().getUIPending() === 0. When skipStabilityWait is true, falls back to briefDOMSettle instead.

Timeout errors are wrapped in TimeoutError with code ERR_TIMEOUT_OPERATION.

Example​

await waitForUI5Stable(page, { timeout: 10_000, polling: 200 });