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

    Function getControlAggregation

    • Retrieves a control aggregation via page.evaluate() using the bridge.

      Parameters

      • page: MatcherPage

        The page (or minimal MatcherPage) to evaluate on.

      • controlId: string

        The ID of the UI5 control.

      • aggregationName: string

        The aggregation to read (e.g., 'items', 'cells').

      Returns Promise<readonly BridgeControlRef[]>

      An array of control references from the browser context.

      Read an aggregation (child controls) from a UI5 control for table/list assertions.

      matchers.getControlAggregation

      Returns an array of BridgeControlRef objects (empty array if no items in aggregation).

      Ensures the bridge is injected, then executes the getter method for the given aggregation on the target control. Returns an array of BridgeControlRef objects.

      const rows = await getControlAggregation(page, 'table1', 'items');