Skip to main content
Version: 1.x

Function: feGetTableRowCount()

feGetTableRowCount(page, tableId): Promise<number>

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

Gets the number of rows in a UI5 table control.

Parameters

page

FETablePage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID of the table.

Returns

Promise<number>

The number of rows in the table.

Remarks

Supports responsive tables (sap.m.Table) via getItems() and grid tables (sap.ui.table.Table and variants) via getBinding('rows').getLength().

Throws

ControlError if the table control is not found.

Example

const count = await feGetTableRowCount(page, 'myApp--productTable');