Ai
Retrieves data from a UI5 OData model at the given path.
Playwright Page (or compatible subset).
OData model path (must start with '/').
Optional
OData options (timeout, modelName).
The data at the given path (array, object, or primitive).
ui5.odata.getModelData
Read data from the UI5 OData model at a specific binding path.
On success, returns the data at the path (array, object, or primitive) from the model.
Accesses the component's OData model via getData() or getProperty(). Path must start with '/'. Use modelName option for named models.
sap.ui.model.odata.v2.ODataModel, sap.ui.model.odata.v4.ODataModel
Read OData entity data from the UI5 model layer for data-level assertions.
ODataError if path is invalid or model/data not found.
const products = await getModelData(page, '/Products');const single = await getModelData(page, '/Products(1)', { modelName: 'catalog' }); Copy
const products = await getModelData(page, '/Products');const single = await getModelData(page, '/Products(1)', { modelName: 'catalog' });
Retrieves data from a UI5 OData model at the given path.