Table of Contents

Interface IMenu

Namespace
HP.LFT.SDK.StdWin
Assembly
HP.LFT.SDK.dll

A standard Windows menu.

public interface IMenu : ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

Type

The menu type.

Possible values: MenuType

MenuType Type { get; }

Property Value

MenuType

Methods

BuildMenuPath(params object[])

Returns the path of the specified menu item.

string BuildMenuPath(params object[] menuPathParts)

Parameters

menuPathParts object[]

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

string

GetItem(string)

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

IMenuItem GetItem(string itemPath)

Parameters

itemPath string

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

IMenuItem

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

Select(IMenuItem)

Selects the specified item in the menu by IMenuItem.

void Select(IMenuItem item)

Parameters

item IMenuItem

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.

void Select(string menuPath)

Parameters

menuPath string

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.