Package com.hp.lft.sdk.java
Interface List
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A Java list box with single or multiple selection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateItem(int itemIndex) Activates an item in the list.voidactivateItem(ListItem item) Activates an item in the list.voidactivateItem(String item) Activates an item in the list.voiddeselect(int... itemIndices) Deselects items from the list.voidDeselects items from the list.voidDeselects items from the list.voiddeselectRange(int indexFrom, int indexTo) Deselects list items between (and including) the two specified items.voidextendSelect(int... itemIndices) Selects additional items from the multi-selection list, by index.voidextendSelect(ListItem... items) Selects additional items from the multi-selection list, by ListItem items.voidextendSelect(String... items) Selects additional items from the multi-selection list, by name.Returns the item with the specified text.getItems()Returns the list of items in the list object.Returns the list of items that are selected in the list object.voidselect(int... itemIndices) Selects multiple items by indices.voidSelects multiple items by string values.voidSelects multiple items by string values.voidselectRange(int indexFrom, int indexTo) Selects list items between (and including) the two specified items.voidselectRange(ListItem itemFrom, ListItem itemTo) Selects list items between (and including) the two specified items.voidselectRange(String itemNameFirst, String itemNameLast) Selects list items between (and including) the two specified items.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
activateItem
Activates an item in the list.- Parameters:
item- the item to activate.- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateItem
Activates an item in the list.- Parameters:
item- the name of the item to activate.- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateItem
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
Deselects items from the list.- Parameters:
items- the items to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Deselects items from the list.- Parameters:
items- the texts of the items to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Deselects items from the list.- Parameters:
itemIndices- 0-based indices of the items to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
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
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
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
Selects multiple items by string values.- Parameters:
items- string values of the items to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects multiple items by string values.- Parameters:
items- string values of the items to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects multiple items by indices.- Parameters:
itemIndices- the 0-based indices of the items to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
selectRange
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
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
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
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
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
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
-