Package com.hp.lft.sdk.sap.gui
Interface ComboBox
- All Superinterfaces:
Element
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,WaitUntilEnabledProvider
A combo box in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the static text attached to the combo box.Returns the item specified by the item text.getItems()
Returns the list of the items in the combo box.Returns the selected item.void
select
(int itemIndex) Selects the specified item by index.void
select
(ComboBoxItem item) Selects the item from the combo box list.void
Selects the specified item by text.void
Selects the SAP shortcut key representing an item in the combo box list.void
setFocus()
Sets focus on the combo box.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.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getAttachedText
Returns the static text attached to the combo box.- Returns:
- the static text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getItems
Returns the list of the items in the combo box.- Returns:
- the list of items.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedItem
Returns the selected item.- Returns:
- the selected item.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getItem
Returns the item specified by the item text.- Parameters:
itemText
- the text of the item.- Returns:
- the item specified by the item text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified item by text.- Parameters:
itemText
- the text of the item to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified item by index.- Parameters:
itemIndex
- 1-based.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the item from the combo box list.- Parameters:
item
- the item to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectKey
Selects the SAP shortcut key representing an item in the combo box list.- Parameters:
itemKey
- the SAP shortcut key.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setFocus
Sets focus on the combo box.- Throws:
GeneralLeanFtException
- if error occurs during execution
-