Skip to main content
Version: 1.x

Function: feGetListItemCount()

feGetListItemCount(page, listId): Promise<number>

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.

Capability​

fe.list.getItemCount

Throws​

ControlError if the list control is not found.

Example​

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