Skip to main content
Version: 1.x

Function: selectTableRow()

selectTableRow(page, tableId, rowIndex, options?): Promise<void>

Defined in: src/modules/table.ts:401

Ai

Selects a table row by index.

Parameters

page

TablePage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

rowIndex

number

Zero-based row index.

options?

TableOptions

Table options.

Returns

Promise<void>

Intent

Select (highlight) a table row by its zero-based index.

Guarantee

On success, the row is selected in the table's selection model.

Ai Context

Uses SelectionPlugin for grid tables, setSelectedItem for responsive tables.

Sap Module

sap.m.Table, sap.ui.table.Table — row selection API

Business Context

Select a specific row for subsequent actions (delete, edit, navigate).

Example

`await selectTableRow(page, 'myTable', 0);`