Package com.hp.lft.sdk.stdwin
Interface Menu
- All Superinterfaces:
TestObject
,TestObjectDescriber
A standard Windows menu.
-
Method Summary
Modifier and TypeMethodDescriptionbuildMenuPath
(Object... menuPathParts) Returns the path of the specified menu item.Returns the menu item with the specified path.getType()
Returns the type of the menu.void
Selects the specified item in the menu byMenuItem
.void
Selects the specified item in the menu by path.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
-
Method Details
-
buildMenuPath
Returns the path of the specified menu item.- Parameters:
menuPathParts
- the menu path parts can be: logical name(string), full path(string), or numeric index(int).
Index values are 1-based. For a full path, separate items with commas.- Returns:
- the menu path
-
getType
Returns the type of the menu. Possible values:MenuType
- Returns:
- the type of the menu.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified item in the menu byMenuItem
.- Parameters:
item
- specified menu item to select from the menu.
Tip: Use the GetItem method to get the item to be used as the item argument for this method.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified item in the menu by path.- Parameters:
itemPath
- the full path of the menu item to return. To specify the index of the item to select, use <Item #>.
Index values begin with 1.
Tip: Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getItem
Returns the menu item with the specified path. Tip: To check whether the item exists, use the MenuItem.Exists property.- Parameters:
itemPath
- the full path of the menu item to return. To specify the index of the item to select, use <Item #>.
Index values begin with 1.
Tip: Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method.- Returns:
- the menu item (MenuItem) found at the specified item path
- Throws:
GeneralLeanFtException
- if error occurs during execution
-