Table of Contents

Interface IMenu

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

A menu control in a Web page or application.

public interface IMenu : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
Inherited Members
Extension Methods

Properties

TopLevelMenuItems

An array of strings containing the top level menu items in this menu.

ReadOnlyCollection<string> TopLevelMenuItems { get; }

Property Value

ReadOnlyCollection<string>

Methods

BuildMenuPath(params object[])

Returns the path constructed from the path parts.

string BuildMenuPath(params object[] menuPathParts)

Parameters

menuPathParts object[]

The tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based).

Returns

string

Select(params object[])

Selects the menu item according to the specified path.

void Select(params object[] menuPathParts)

Parameters

menuPathParts object[]

The tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based).

Select(string)

Selects the menu item according to the specified path.

void Select(string menuPath)

Parameters

menuPath string

The path to the menu item to select, separated by semicolons, e.g. "item1;item2" or "#1;#2"

The menu items can be specified by name or index numbers (0-based).

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