Skip to main content
Version: 1.x

Function: getTableRowCount()

getTableRowCount(page, tableId, options?): Promise<number>

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

Ai

Returns the total row count from a UI5 table's binding.

Parameters

page

TablePage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

options?

TableOptions

Table options.

Returns

Promise<number>

Intent

Get the total number of rows in a table (from binding length or items count).

Ai Context

For grid tables, reads binding.getLength(). For responsive tables, reads items.length.

Sap Module

sap.m.Table, sap.ui.table.Table — row binding length

Business Context

Verify expected data volume in a table before proceeding with row operations.

Example

`const count = await getTableRowCount(page, 'myTable');`