Share this page

com.hp.lft.sdk.oracle

# Interface List

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

      public interface List
      extends UiObjectBase, WaitUntilEnabledProvider, TestObject

  An Oracle poplist (combo box) or list.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activate(int item)` Activates the specified item in the list.
    `void` | `activate(ListItem item)` Activates the specified item in the list.
    `void` | `activate(String item)` Activates the specified item in the list.
    `boolean` | `contains(String item)` Indicates whether the specified item is contained in the list.
    `String` | `getCaption()` Returns the caption of the object.
    `String` | `getClassPath()` The Oracle class hierarchy of the object's Oracle class.
    `ListItem` | `getItem(int item)` Returns the item with the specified text.
    `ListItem` | `getItem(String item)` Returns the item with the specified text.
    `String` | `getObjectDescription()` Indicates accessibility description of the object as specified by the server.
    `String` | `getObjectName()` Indicates internal name of the object supplied by the application server.
    `int` | `getSelectedIndex()` Returns the index of the selected item (0-based).
    `ListItem` | `getSelectedItem()` Returns the value of the selected item.
    `String` | `getTooltipText()` Indicates the text displayed in the object's tooltip.
    `void` | `select(int item)` Selects the specified item from the list.
    `void` | `select(ListItem 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

    - #### getSelectedItem

          ListItem getSelectedItem()
                            throws GeneralLeanFtException

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

    - #### getCaption

          String getCaption()
                     throws GeneralLeanFtException

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

    - #### getSelectedIndex

          int getSelectedIndex()
                        throws GeneralLeanFtException

      Returns the index of the selected item (0-based).
      Returns:
        the index of the selected item (0-based).
        Note: If no item is selected, -1 is returned.
      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

    - #### getObjectDescription

          String getObjectDescription()
                               throws GeneralLeanFtException

      Indicates accessibility description of the object as specified by the server.
      Returns:
        the accessibility description of the object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getObjectName

          String getObjectName()
                        throws GeneralLeanFtException

      Indicates internal name of the object supplied by the application server.
      Returns:
        the internal name of the object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getTooltipText

          String getTooltipText()
                         throws GeneralLeanFtException

      Indicates the text displayed in the object's tooltip.
      Returns:
        the text displayed in the object's tooltip.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getItem

          ListItem getItem(String item)
                    throws GeneralLeanFtException

      Returns the item with the specified text.
      Parameters:
        `item` - The text of the item.
      Returns:
        the item with the specified text.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getItem

          ListItem getItem(int item)
                    throws GeneralLeanFtException

      Returns the item with the specified text.
      Parameters:
        `item` - The index of the item.
      Returns:
        the item with the specified text.
      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

    - #### select

          void select(ListItem item)
               throws GeneralLeanFtException

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

    - #### activate

          void activate(String item)
                 throws GeneralLeanFtException

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

    - #### activate

          void activate(int item)
                 throws GeneralLeanFtException

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

    - #### activate

          void activate(ListItem item)
                 throws GeneralLeanFtException

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

    - #### contains

          boolean contains(String item)
                    throws GeneralLeanFtException

      Indicates whether the specified item is contained in the list.
      Parameters:
        `item` - the item to be searched in list.
      Returns:
        whether the specified item is contained in the list.
      Throws:
        `GeneralLeanFtException` - if 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: