Skip to main content
Version: 1.x

Function: feGetListItemTitle()

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

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

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);