Const
Call this InteractorConstructor to initialize a list item Interactor. The list item interactor can be used to interact with items on the page and to assert on their state.
The list item is located by the visible text on the item.
await ListItem('Install `@interactors/material-ui`').click();await ListItem({ index: 2, disabled: true }).exists(); Copy
await ListItem('Install `@interactors/material-ui`').click();await ListItem({ index: 2, disabled: true }).exists();
title
id
visible
true
disabled
false
index
click()
Call this InteractorConstructor to initialize a list item Interactor. The list item interactor can be used to interact with items on the page and to assert on their state.
The list item is located by the visible text on the item.
Example
Filters
title
: string – Filter by titleid
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.disabled
: boolean – Filter by whether the item is disabled. Defaults tofalse
.index
: number - Filter by the item's zero-based index position in a list.Actions
click()
: Interaction – Click on the list item