Interface List

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

public interface List extends UiObjectBase, TestObject
A .NET WPF list object.
  • Method Details

    • canSelectMultiple

      boolean canSelectMultiple() throws GeneralLeanFtException
      Indicates whether this list allows more than one child element to be selected at the same time.
      Returns:
      true if more than one child element can be selected
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getParentText

      String getParentText() throws GeneralLeanFtException
      Returns the text associated with the parent object of this object.
      Returns:
      the text associated with the parent
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getName

      String getName() throws GeneralLeanFtException
      Returns the name of this object.
      Returns:
      the name
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getHelpText

      String getHelpText() throws GeneralLeanFtException
      Returns the help text associated with this object.
      Returns:
      the help text
      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
    • 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 indices of the items to select
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • extendSelect

      void extendSelect(String... items) throws GeneralLeanFtException
      Selects additional items from the multi-selection list.
      This method is applicable only to lists that allow multiple selection.
      Parameters:
      items - the names of the items to add to the selection.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • extendSelect

      void extendSelect(int... itemIndices) throws GeneralLeanFtException
      Selects additional items from the multi-selection list.
      This method is applicable only to lists that allow multiple selection.
      Parameters:
      itemIndices - the indices of the items to add to the selection.
      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 in the range
      indexTo - 0-based index of the last item of the range
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectRange

      void selectRange(String itemNameFrom, String itemNameTo) throws GeneralLeanFtException
      Selects list items between (and including) the two specified items.
      Parameters:
      itemNameFrom - name of the first item in the range
      itemNameTo - name of the last item of the range
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getItems

      List<String> getItems() throws GeneralLeanFtException
      Returns the list of items in the list object.
      Returns:
      the texts of the items
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getSelectedItems

      List<String> 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