UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
GetItem Method (IMenu)
The full path of the menu item to return. The path is composed of the menu item names or a numeric index separated by a semicolon. 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 with the specified path. Tip: To check whether the item exists, use the MenuItem.Exists property.
Syntax

Parameters

itemPath
The full path of the menu item to return. The path is composed of the menu item names or a numeric index separated by a semicolon. 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.

Return Value

The menu item (IMenuItem) found at the specified item path