Share this page

com.hp.lft.sdk.java

# Interface ListItem

-     public interface ListItem

  A single list item in a Java list.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getIndex()` Returns the 0-based index of the list item.
    `java.lang.String` | `getText()` Returns the text value of the list item.

- - ### Method Detail

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the text value of the list item.
      Returns:
        the text value of the list item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getIndex

          int getIndex()
                throws GeneralLeanFtException

      Returns the 0-based index of the list item.
      Returns:
        the index of the list item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java 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: