Ai
Reads a single property from a UI5 OData model.
Playwright Page (or compatible subset).
OData model property path (must start with '/').
Optional
OData options (timeout, modelName).
The property value, or undefined if not found.
undefined
ui5.odata.getModelProperty
Read a specific property value from the OData model.
On success, returns the property value at the path, or undefined if not found.
Uses model.getProperty() for single-value reads. More efficient than getModelData() when only one property is needed.
sap.ui.model.odata.v2.ODataModel, sap.ui.model.odata.v4.ODataModel
Read individual entity properties for targeted assertions.
const name = await getModelProperty(page, '/Products(1)/Name'); Copy
const name = await getModelProperty(page, '/Products(1)/Name');
Reads a single property from a UI5 OData model.