Package com.hp.lft.sdk.stdwin
Interface ComboBox
- All Superinterfaces:
Clickable
,DoubleClickable
,EnabledProvider
,LocationInfoProvider
,SupportDragAndDrop
,SupportSendKeys
,TestObject
,TestObjectDescriber
,UiObjectBase
,UiObjectBase
,UiObjectWithLayoutInfo
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
A standard Windows combo box.
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()
Returns a list of strings containing the names of all items in the combo box.Returns the selected item in the combo box.void
open()
Opens the combo box.void
select
(int index) Selects an item from the combo box based on a numerical index.void
Selects an item from the combo box based on a string.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.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.stdwin.UiObjectBase
getAccessibleName, getAttachedText, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowExtendedStyleAsLong, getWindowId, getWindowStyle, getWindowStyleAsLong
Methods inherited from interface com.hp.lft.sdk.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMove
Methods inherited from interface com.hp.lft.sdk.stdwin.UiObjectWithLayoutInfo
isRightAligned, isRightToLeftLayout, isRightToLeftReading
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
-
getItems
Returns a list of strings containing the names of all items in the combo box.- Returns:
- a list of strings containing the names of all items in the combo box.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedItem
Returns the selected item in the combo box.- Returns:
- the selected item in the combo box.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects an item from the combo box based on a numerical index.- Parameters:
index
- numeric, 0-based, index of the item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects an item from the combo box based on a string.- Parameters:
item
- the item value.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
open
Opens the combo box.- Throws:
GeneralLeanFtException
- if error occurs during execution
-