Interface List

All Superinterfaces:
Clickable, DoubleClickable, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilEnabledProvider, WaitUntilVisibleProvider

public interface List extends UiObjectBase, TestObject
A Java list box with single or multiple selection.
  • Method Details

    • activateItem

      void activateItem(ListItem item) throws GeneralLeanFtException
      Activates an item in the list.
      Parameters:
      item - the item to activate.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateItem

      void activateItem(String item) throws GeneralLeanFtException
      Activates an item in the list.
      Parameters:
      item - the name of the item to activate.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateItem

      void activateItem(int itemIndex) throws GeneralLeanFtException
      Activates an item in the list.
      Parameters:
      itemIndex - the 0-based index of the item to activate.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselect

      void deselect(ListItem... items) throws GeneralLeanFtException
      Deselects items from the list.
      Parameters:
      items - the items to deselect.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselect

      void deselect(String... items) throws GeneralLeanFtException
      Deselects items from the list.
      Parameters:
      items - the texts of the items to deselect.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselect

      void deselect(int... itemIndices) throws GeneralLeanFtException
      Deselects items from the list.
      Parameters:
      itemIndices - 0-based indices of the items to deselect.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • extendSelect

      void extendSelect(String... items) throws GeneralLeanFtException
      Selects additional items from the multi-selection list, by name.
      Parameters:
      items - the names of the items to add to the selection.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • extendSelect

      void extendSelect(int... itemIndices) throws GeneralLeanFtException
      Selects additional items from the multi-selection list, by index.
      Parameters:
      itemIndices - the indices of the items to add to the selection.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • extendSelect

      void extendSelect(ListItem... items) throws GeneralLeanFtException
      Selects additional items from the multi-selection list, by ListItem items.
      Parameters:
      items - the items to add to the selection.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • select

      void select(ListItem... items) throws GeneralLeanFtException
      Selects multiple items by string values.
      Parameters:
      items - string values of the items to select.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String... items) throws GeneralLeanFtException
      Selects multiple items by string values.
      Parameters:
      items - string values of the items to select.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(int... itemIndices) throws GeneralLeanFtException
      Selects multiple items by indices.
      Parameters:
      itemIndices - the 0-based indices of the items to select.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectRange

      void selectRange(int indexFrom, int indexTo) throws GeneralLeanFtException
      Selects list items between (and including) the two specified items.
      Parameters:
      indexFrom - 0-based index of the first item.
      indexTo - 0-based index of the last item.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectRange

      void selectRange(String itemNameFirst, String itemNameLast) throws GeneralLeanFtException
      Selects list items between (and including) the two specified items.
      Parameters:
      itemNameFirst - the name of the first item to select.
      itemNameLast - the name of the last item to select.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • selectRange

      void selectRange(ListItem itemFrom, ListItem itemTo) throws GeneralLeanFtException
      Selects list items between (and including) the two specified items.
      Parameters:
      itemFrom - the first item to select.
      itemTo - the last item to select.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • deselectRange

      void deselectRange(int indexFrom, int indexTo) throws GeneralLeanFtException
      Deselects list items between (and including) the two specified items.
      Parameters:
      indexFrom - 0-based index of the first item.
      indexTo - 0-based index of the last item.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getItems

      Returns the list of items in the list object.
      Returns:
      the texts of the items.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getSelectedItems

      List<ListItem> getSelectedItems() throws GeneralLeanFtException
      Returns the list of items that are selected in the list object.
      Returns:
      the texts of the selected items.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getItem

      ListItem getItem(String text) throws GeneralLeanFtException
      Returns the item with the specified text.
      Parameters:
      text - the text.
      Returns:
      the item with the specified text.
      Throws:
      GeneralLeanFtException - if error occurs during execution