Skip to main content

Function: feGetListItemCount()

feGetListItemCount(page, listId): Promise<number>

Defined in: src/fe/fe-list-helpers.ts:65

Gets the number of items in a sap.m.List control.

Parameters​

page​

FEListPage

Playwright Page (or compatible subset).

listId​

string

The UI5 control ID of the list.

Returns​

Promise<number>

The number of items in the list.

Throws​

ControlError if the list control is not found.

Example​

const count = await feGetListItemCount(page, 'myApp--productList');