Share this page

# ListItem

# StdWin. ListItem

ListItem

# Constructor

## new ListItem()

A ListItem object

### Methods

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

The height of the list item (in pixels).

##### Returns:

a promise fulfilled with the height of the item.

Type
  Promise.<number>

## isFocused() → {Promise.<boolean>}

Indicates whether the list item has focus in a multiple selection list box.

##### Returns:

a promise fulfilled with the indication whether the item is focused or not.

Type
  Promise.<boolean>

## isSelected() → {Promise.<boolean>}

Indicates whether the list item is selected.

##### Returns:

a promise fulfilled with the indication whether the item is selected or not.

Type
  Promise.<boolean>

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

The text value of the list item, or "" when empty.

##### Returns:

a promise fulfilled with the text of the item.

Type
  Promise.<string>

Tips to improve your search results... UFT Developer JavaScript SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: