Finds the index of a list item by its title text.
Playwright Page (or compatible subset).
The UI5 control ID of the list.
The title text to search for (exact match).
The zero-based index of the matching item, or -1 if not found.
ControlError if the list control is not found.
const index = await feFindListItemByTitle(page, 'myApp--productList', 'Widget A'); Copy
const index = await feFindListItemByTitle(page, 'myApp--productList', 'Widget A');
Finds the index of a list item by its title text.