Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function getEntityCount

    • Reads the number of entities in a binding from the UI5 model.

      Parameters

      • page: ODataPage

        Playwright Page (or compatible subset).

      • path: string

        OData model path (must start with '/').

      • Optionaloptions: ODataOptions

        OData options (timeout, modelName).

      Returns Promise<number>

      The entity count (0 if no data or not an array).

      const count = await getEntityCount(page, '/Products');