Open topic with navigation

com.hp.lft.sdk.oracle

# Interface ListOfValues

Note: Supported in LeanFT versions 14.52 and later.

- All Superinterfaces:
    Clickable, EnabledProvider, LocationInfoProvider, TestObject, TestObjectDescriber, TopLevelObject, UiObjectBase, WaitUntilEnabledProvider

      public interface ListOfValues
      extends UiObjectBase, WaitUntilEnabledProvider, TopLevelObject

  An Oracle window containing a list of values for selection.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cancel()` Closes the List of Values window.
    `void` | `find(String text)` Finds the item in the list that matches the specified value.
    `String` | `getClassPath()` The Oracle class hierarchy of the object's Oracle class.
    `List<String>` | `getItems()` Returns the content of the object window.
    `String` | `getTitle()` Returns the window title.
    `void` | `select(int item)` Selects the specified item from the list.
    `void` | `select(String item)` Selects the specified item from the list.

    - ### Methods inherited from interface com.hp.lft.sdk.oracle.UiObjectBase

      `getObjectType, sendKey`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

- - ### Method Detail

    - #### getTitle

          String getTitle()
                   throws GeneralLeanFtException

      Returns the window title.
      Returns:
        the window title.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getClassPath

          String getClassPath()
                       throws GeneralLeanFtException

      The Oracle class hierarchy of the object's Oracle class.
      Returns:
        the class hierarchy of the object's.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getItems

          List<String> getItems()
                         throws GeneralLeanFtException

      Returns the content of the object window.
      Returns:
        the content of the object window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### cancel

          void cancel()
               throws GeneralLeanFtException

      Closes the List of Values window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### find

          void find(String text)
             throws GeneralLeanFtException

      Finds the item in the list that matches the specified value. The value or prefix to find in the first column of the list. LeanFT searches in the first column of the list to locate the specified value. If only one item in the list matches the specified value, it is automatically selected. If more than one item in the list matches the specified value, all of the matching values are displayed.
      Parameters:
        `text` - The text to be found.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(String item)
               throws GeneralLeanFtException

      Selects the specified item from the list.
      Parameters:
        `item` - the item to be selected.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int item)
               throws GeneralLeanFtException

      Selects the specified item from the list.
      Parameters:
        `item` - the item to be selected (0-based).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution