Function: waitForODataLoad()
waitForODataLoad(
page,options?):Promise<void>
Defined in: src/modules/odata.ts:306
Ai
Waits for OData data to load by polling a binding path.
Parameters
page
ODataPage
Playwright Page (or compatible subset).
options?
Wait options (timeout, polling, bindingPath, modelName).
Returns
Promise<void>
Intent
Wait until OData data is loaded at a specific binding path.
Guarantee
On success, the model has non-null data at the specified path.
Prerequisite
An OData model must be configured on the component.
Ai Context
Polls the model until getData() returns non-empty data or timeout. Use after navigation or filter changes to wait for backend response.
Sap Module
sap.ui.model.odata.v2.ODataModel, sap.ui.model.odata.v4.ODataModel
Business Context
Wait for SAP backend data to load before asserting on table or form content.
Throws
TimeoutError if data does not load within the timeout.
Example
await waitForODataLoad(page, { bindingPath: '/Products', timeout: 10_000 });