Interface IMenu
A menu control in a Web page or application.
Inherited Members
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public interface IMenu : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
Properties
TopLevelMenuItems
An array of strings containing the top level menu items in this menu.
Declaration
ReadOnlyCollection<string> TopLevelMenuItems { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<string> |
Methods
BuildMenuPath(params object[])
Returns the path constructed from the path parts.
Declaration
string BuildMenuPath(params object[] menuPathParts)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | menuPathParts | The tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based). |
Returns
| Type | Description |
|---|---|
| string |
Select(params object[])
Selects the menu item according to the specified path.
Declaration
void Select(params object[] menuPathParts)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | menuPathParts | 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.
Declaration
void Select(string menuPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | menuPath | 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. |