Table of Contents

Interface IMenu

A standard Windows menu.

Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface IMenu : ITestObject, ITestObjectDescriber

Properties

Type

The menu type.

Possible values: MenuType

Declaration
MenuType Type { get; }
Property Value
Type Description
MenuType

Methods

BuildMenuPath(params object[])

Returns the path of the specified menu item.

Declaration
string BuildMenuPath(params object[] menuPathParts)
Parameters
Type Name Description
object[] menuPathParts

The menu path parts can be: logical name(string), full path(string), or numeric index(int). Index values are 1-based. For a full path, separate items with commas.

Returns
Type Description
string

GetItem(string)

Returns the menu item with the specified path. Tip: To check whether the item exists, use the MenuItem.Exists property.

Declaration
IMenuItem GetItem(string itemPath)
Parameters
Type Name Description
string 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.

Returns
Type Description
IMenuItem

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

Select(IMenuItem)

Selects the specified item in the menu by IMenuItem.

Declaration
void Select(IMenuItem item)
Parameters
Type Name Description
IMenuItem item

Specified menu item to select from the menu. Tip: Use the GetItem method to get the item to be used as the item argument for this method.

Select(string)

Selects the specified item in the menu by menu path.

Declaration
void Select(string menuPath)
Parameters
Type Name Description
string menuPath

The path of the specified menu item. Tip: Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method.

Extension Methods

TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)