Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Function getModelProperty

    • 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 '/').

      • Optionaloptions: ODataOptions

        OData options (timeout, modelName).

      Returns Promise<unknown>

      The property value, or undefined if not found.

      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');