Skip to main content

Function: waitForUI5Bootstrap()

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

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

Waits for SAP UI5 to finish bootstrapping (core library loaded).

Parameters​

page​

WaitPage

Playwright Page (or compatible subset).

options?​

Optional timeout configuration.

timeout?​

number

Returns​

Promise<void>

Remarks​

Polls for window.sap?.ui?.getCore existence using page.waitForFunction().

V16 tracked issue: Default timeout is DEFAULT_TIMEOUTS.UI5_BOOTSTRAP (60 000 ms) to accommodate slow first-load scenarios on SAP BTP.

Example​

await waitForUI5Bootstrap(page, { timeout: 30_000 });