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 TypeMethodDescriptionboolean
Indicates whether this list allows more than one child element to be selected at the same time.void
deselect
(int... itemIndices) Deselects items from the list.void
Deselects items from the list.void
extendSelect
(int... itemIndices) Selects additional items from the multi-selection list.void
extendSelect
(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.void
select
(int... itemIndices) Selects multiple items by indices.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
(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, 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.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
Methods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeys
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.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMove
Methods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase
canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenu
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
-
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
-