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 Summary
Modifier 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.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods 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.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElement
doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber
describe, 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 0-based. For a full path, separate items with commas.- Returns:
- the menu path
-
getTopLevelMenuItems
Returns 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
-
select
Selects 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
-
select
Selects 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
-