Package com.hp.lft.sdk.wpf
Interface List
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportSendKeys,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A .NET WPF list object.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this list allows more than one child element to be selected at the same time.voiddeselect(int... itemIndices) Deselects items from the list.voidDeselects items from the list.voidextendSelect(int... itemIndices) Selects additional items from the multi-selection list.voidextendSelect(String... items) Selects additional items from the multi-selection list.Returns the help text associated with this object.getItems()Returns the list of items in the list object.getName()Returns the name of this object.Returns the text associated with the parent object of this 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.voidselectRange(int indexFrom, int indexTo) Selects list items between (and including) the two specified items.voidselectRange(String itemNameFrom, String itemNameTo) 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.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeysMethods 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.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase
canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenuMethods 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
-
canSelectMultiple
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
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
Returns the name of this object.- Returns:
- the name
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getHelpText
Returns the help text associated with this object.- Returns:
- the help text
- 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
-
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 indices of the items to select- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
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
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
Selects list items between (and including) the two specified items.- Parameters:
indexFrom- 0-based index of the first item in the rangeindexTo- 0-based index of the last item of the range- Throws:
GeneralLeanFtException- if error occurs during execution
-
selectRange
Selects list items between (and including) the two specified items.- Parameters:
itemNameFrom- name of the first item in the rangeitemNameTo- name of the last item of the range- 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
-