Skip to main content

Function: feGetListItemTitle()

feGetListItemTitle(page, listId, itemIndex): Promise<string>

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

Gets the title of a list item at the specified index.

Parameters​

page​

FEListPage

Playwright Page (or compatible subset).

listId​

string

The UI5 control ID of the list.

itemIndex​

number

Zero-based index of the item.

Returns​

Promise<string>

The title text of the list item.

Throws​

ControlError with ERR_CONTROL_AGGREGATION if the index is out of bounds.

Example​

const title = await feGetListItemTitle(page, 'myApp--productList', 0);