Package com.hp.lft.sdk.powerbuilder
Interface ComboBox
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportSendKeys,TestObject,TestObjectDescriber,UiObjectBase,UiObjectBase,UiObjectWithLayoutInfo,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A PowerBuilder 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.voidselect(int index) Selects an item from the combo box based on a numerical index.voidSelects an item from the combo box based on a string.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.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.powerbuilder.UiObjectBase
getAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyleMethods inherited from interface com.hp.lft.sdk.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfo
isRightAligned, isRightToLeftLayout, isRightToLeftReadingMethods 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
-
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
-