Package com.hp.lft.sdk.web
Interface Menu
- All Superinterfaces:
- Clickable,- LocationInfoProvider,- SupportDragAndDrop,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- VisibleProvider,- WaitUntilVisibleProvider,- WebElement,- WebTestObject,- WebTestObjectDescriber
A menu control in a Web page or application.
- 
Method SummaryModifier and TypeMethodDescriptionbuildMenuPath(Object... menuPathParts) Returns the path of the specified menu item.Returns the list of all the top level menu items contained in this menu.voidSelects the specified item in the menu by path.voidSelects the specified item in the menu by path.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElementdoubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectgetAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriberdescribe, describe
- 
Method Details- 
buildMenuPathReturns 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 0-based. For a full path, separate items with commas.
- Returns:
- the menu path
 
- 
getTopLevelMenuItemsReturns the list of all the top level menu items contained in this menu.- Returns:
- An array of strings containing the top level menu items in this menu.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects the specified item in the menu by path.- Parameters:
- menuPath- the full path of the menu item to return. To specify the index of the item to select, use #Number where Number is the item number.
 Index values begin with 0.
 Tip: Use the BuildMenuPath method to build the menu path string to be used as the menuPath argument for this method
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects the specified item in the menu by path.- Parameters:
- menuPathParts- the menu path parts can be: logical name(string), full path(string), or numeric index(int).
 Index values are 0-based. For a full path, separate items with commas.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-