Skip to main content
Version: 1.x

Function: feGetListItemDescription()

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

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

Gets the description 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 description text of the list item, or empty string if none.

Throws

ControlError with ERR_CONTROL_AGGREGATION if the index is out of bounds.

Example

const desc = await feGetListItemDescription(page, 'myApp--productList', 0);