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 TypeMethodDescriptionvoid
activateItem
(int itemIndex) Activates an item in the list.void
activateItem
(ListItem item) Activates an item in the list.void
activateItem
(String item) Activates an item in the list.void
deselect
(int... itemIndices) Deselects items from the list.void
Deselects items from the list.void
Deselects items from the list.void
deselectRange
(int indexFrom, int indexTo) Deselects list items between (and including) the two specified items.void
extendSelect
(int... itemIndices) Selects additional items from the multi-selection list, by index.void
extendSelect
(ListItem... items) Selects additional items from the multi-selection list, by ListItem items.void
extendSelect
(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.void
select
(int... itemIndices) Selects multiple items by indices.void
Selects multiple items by string values.void
Selects multiple items by string values.void
selectRange
(int indexFrom, int indexTo) Selects list items between (and including) the two specified items.void
selectRange
(ListItem itemFrom, ListItem itemTo) Selects list items between (and including) the two specified items.void
selectRange
(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, doubleClick
Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods 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, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeys
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods 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
-