Skip to main content

Function: feClickListItem()

feClickListItem(page, listId, itemIndex): Promise<void>

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

Clicks (presses) 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 to click.

Returns​

Promise<void>

Remarks​

Fires the press event on the list item. Falls back to tap if firePress is unavailable.

Throws​

ControlError with ERR_CONTROL_AGGREGATION if the index is invalid.

Example​

await feClickListItem(page, 'myApp--productList', 0);