Package com.hp.lft.sdk.wpf
Interface Menu
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportSendKeys,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A .NET WPF menu object.
-
Method Summary
Modifier and TypeMethodDescriptionbuildMenuPath(Object... menuPathParts) Returns the path constructed from the path parts.Returns the item at the specified path in the menu.voidSelects the specified item in the menu.
You can usegetItem(String)to get the item to use as the item argument.voidSelects the item at the specified path in the menu.
You can usebuildMenuPath(Object...)to build the itemPath argument.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.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.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase
canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenuMethods 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
-
buildMenuPath
Returns the path constructed from the path parts.- Parameters:
menuPathParts- The menu path parts can be: logical name(string), full path(comma-separated strings), or index(1-based).- Returns:
- the path of the specified menu item.
-
select
Selects the specified item in the menu.
You can usegetItem(String)to get the item to use as the item argument.- Parameters:
item- item to select- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects the item at the specified path in the menu.
You can usebuildMenuPath(Object...)to build the itemPath argument.- Parameters:
itemPath- the path of the item to select. To specify the 1-based index of the item to select, use <Item #>.- Throws:
GeneralLeanFtException- if error occurs during execution
-
getItem
Returns the item at the specified path in the menu.- Parameters:
itemPath- the full path of the menu item to select from the list. The path is composed of the menu item names or a 1-based index separated by a semicolon. To specify the 1-based index of the item to select, use <Item #>.- Returns:
- MenuItem representing the menu item.
- Throws:
GeneralLeanFtException- if error occurs during execution
-