Table of Contents

Interface IMenu

Namespace
HP.LFT.SDK.WPF
Assembly
HP.LFT.SDK.dll

A .NET WPF menu object.

public interface IMenu : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Methods

BuildMenuPath(params object[])

Returns the path constructed from the path parts.

string BuildMenuPath(params object[] menuPathParts)

Parameters

menuPathParts object[]

The menu path parts can be: logical name(string), full path(comma-separated strings), or index(1-based).

Returns

string

GetItem(string)

Returns the menu item with the specified path.

IMenuItem GetItem(string itemPath)

Parameters

itemPath string

The full path of the menu item to select from the list. 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 n>. Index values begin with 1.

For example, File;<Item 3gt;;Move;<Item gt;...

Returns

IMenuItem

Select(IMenuItem)

Selects the specified item.

void Select(IMenuItem item)

Parameters

item IMenuItem

Item to select.

Remarks

Tip: You can use GetItem(string) to get the item argument.

Select(string)

Selects the specified item.

void Select(string menuPath)

Parameters

menuPath string

The path of the item.

Tip: You can use the BuildMenuPath method to build the item path string that can then be used as the itemPath argument for this method.