Open topic with navigation

# ListItem

# Java. ListItem

ListItem

# Constructor

## new ListItem()

A List Item object

### Methods

## index() → {Promise.<number>}

Returns the index property of the item.

##### Returns:

a promise that is fulfilled with the 0-based index of the list item.

Type
  Promise.<number>

## text() → {Promise.<string>}

Returns the text property of the item.

##### Returns:

a promise that is fulfilled with the text value of the list item.

Type
  Promise.<string>