Function: getModelProperty()
getModelProperty(
page,path,options?):Promise<unknown>
Defined in: src/modules/odata.ts:243
Ai
Reads a single property from a UI5 OData model.
Parameters
page
ODataPage
Playwright Page (or compatible subset).
path
string
OData model property path (must start with '/').
options?
OData options (timeout, modelName).
Returns
Promise<unknown>
The property value, or undefined if not found.
Intent
Read a specific property value from the OData model.
Ai Context
Uses model.getProperty() for single-value reads. More efficient than getModelData() when only one property is needed.
Sap Module
sap.ui.model.odata.v2.ODataModel, sap.ui.model.odata.v4.ODataModel
Business Context
Read individual entity properties for targeted assertions.
Example
const name = await getModelProperty(page, '/Products(1)/Name');