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.void
Selects the specified item in the menu.
You can usegetItem(String)
to get the item to use as the item argument.void
Selects 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, doubleClick
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.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
Methods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeys
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.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMove
Methods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase
canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenu
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods 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
-