Interface IToolBar
A toolbar control in a SAP GUI for Windows application.
public interface IToolBar : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
- Inherited Members
- Extension Methods
Methods
BuildMenuPath(params object[])
Returns the path of the specified menu item.
string BuildMenuPath(params object[] menuPathParts)
Parameters
menuPathPartsobject[]The menu path elements can be: logical name (string), full path (string), or 1-based index (int).
Separate elements with commas.
Returns
PressButton(string)
Presses the specified toolbar button.
void PressButton(string buttonId)
Parameters
buttonIdstringThe button ID in text format.
PressContextButton(string)
Presses the specified toolbar button to open the button's context menu.
void PressContextButton(string buttonId)
Parameters
buttonIdstringThe button ID in text format.
SelectMenuItem(string)
Selects the specified menu item from the toolbar button context menu, by path.
void SelectMenuItem(string path)
Parameters
pathstringThe menu item name or full path.
Remarks
Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method.
SelectMenuItem(uint)
Selects the specified menu item from the toolbar button context menu, by index.
void SelectMenuItem(uint index)
Parameters
indexuint1-based.
SelectMenuItemById(string)
Selects the specified menu item from the toolbar button context menu, by SAP ID.
void SelectMenuItemById(string id)
Parameters
idstringThe SAP ID of the context menu item.