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

    Function getSelectedRows

    • Ai

      Returns the indices of selected rows.

      Parameters

      • page: TablePage

        Playwright Page (or compatible subset).

      • tableId: string

        The UI5 control ID.

      • Optionaloptions: TableOptions

        Table options.

      Returns Promise<readonly number[]>

      ui5.table.getSelectedRows

      Get the zero-based indices of all currently selected rows.

      Returns an array of zero-based row indices that are currently selected (empty array if none).

      Uses getSelectedIndices() for grid tables, getSelectedItems() for responsive tables.

      sap.m.Table, sap.ui.table.Table — selection state query

      Verify or capture which rows the user has selected for subsequent actions.

      `const sel = await getSelectedRows(page, 'myTable');`