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

    Function sortByColumn

    • Sorts a table by a specific column.

      Parameters

      • page: TableFilterSortPage

        Playwright Page (or compatible subset).

      • tableId: string

        The UI5 control ID.

      • columnIndex: number

        Zero-based column index.

      • Optionaloptions: TableSortOptions

        Sort options (descending defaults to false).

      Returns Promise<void>

      ui5.table.sortByColumn

      Sort a UI5 table by a specified column in ascending or descending order.

      ControlError if the sort cannot be applied.

      await sortByColumn(page, 'myTable', 0, { descending: true });