Interface IMenubar
A menubar control in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IMenubar : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
Properties
Items
The list of the items in the menu bar.
Declaration
ReadOnlyCollection<string> Items { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<string> |
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 elements can be: logical name(string), full path(string), or numeric index(int). Index values are 1-based. Separate path elements with a semicolon (;). |
Returns
| Type | Description |
|---|---|
| string |
Select(string)
Selects an item from the menu bar.
Declaration
void Select(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The full path of the menu item to select. The path is composed of the menu and sub-menu item names and/or numeric index numbers. Separate path elements with a semicolon (;). |
Remarks
Your can use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method.