Function: feFindListItemByTitle()
feFindListItemByTitle(
page,listId,title):Promise<number>
Defined in: src/fe/fe-list-helpers.ts:224
Finds the index of a list item by its title text.
Parameters
page
Playwright Page (or compatible subset).
listId
string
The UI5 control ID of the list.
title
string
The title text to search for (exact match).
Returns
Promise<number>
The zero-based index of the matching item, or -1 if not found.
Throws
ControlError if the list control is not found.
Example
const index = await feFindListItemByTitle(page, 'myApp--productList', 'Widget A');