Share this page

com.hp.lft.sdk.web

## Interface ListItem

-     public interface ListItem

  A single list item in a Web list.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getText()` Returns the text value of the list item.
    `void` | `makeVisible(java.lang.String xPath)` Makes an item in the list visible.
    `void` | `makeVisible(java.lang.String xPath, double timeOut)` Makes an item in the list visible.

- - ### 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.

    - #### makeVisible

          void makeVisible(java.lang.String xPath)
                    throws GeneralLeanFtException

      Makes an item in the list visible.
      Note: When weblist items are loaded dynamically, this method might return unexpected results.
      Parameters:
        `xPath` - - the xPath value of the control to press to make the item visible in the list.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### makeVisible

          void makeVisible(java.lang.String xPath,
                           double timeOut)
                    throws GeneralLeanFtException

      Makes an item in the list visible.
      Parameters:
        `xPath` - - the xPath value of the control to press to make the item visible in the list.
        `timeOut` - - the amount of time to wait for the item to become visible.
      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: