Skip to main content

Function: feFindRowByValues()

feFindRowByValues(page, tableId, values): Promise<number>

Defined in: src/fe/fe-table-helpers.ts:227

Finds the first row index where all specified column values match.

Parameters​

page​

FETablePage

Playwright Page (or compatible subset).

tableId​

string

The UI5 control ID of the table.

values​

Readonly<Record<string, string>>

A record mapping column names to expected cell values.

Returns​

Promise<number>

The zero-based index of the first matching row, or -1 if not found.

Remarks​

All column lookup and row matching logic runs inside the browser script. Returns -1 if no matching row is found.

Throws​

ControlError if the table control is not found.

Example​

const rowIdx = await feFindRowByValues(page, 'myApp--productTable', { Product: 'Widget A', Status: 'Active' });