Table of Contents

Interface IToolBar

A toolbar control in a SAP GUI for Windows application.

Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IToolBar : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider

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 1-based index (int).

Separate elements with commas.

Returns
Type Description
string

PressButton(string)

Presses the specified toolbar button.

Declaration
void PressButton(string buttonId)
Parameters
Type Name Description
string buttonId

The button ID in text format.

PressContextButton(string)

Presses the specified toolbar button to open the button's context menu.

Declaration
void PressContextButton(string buttonId)
Parameters
Type Name Description
string buttonId

The button ID in text format.

SelectMenuItem(string)

Selects the specified menu item from the toolbar button context menu, by path.

Declaration
void SelectMenuItem(string path)
Parameters
Type Name Description
string path

The 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.

Declaration
void SelectMenuItem(uint index)
Parameters
Type Name Description
uint index

1-based.

SelectMenuItemById(string)

Selects the specified menu item from the toolbar button context menu, by SAP ID.

Declaration
void SelectMenuItemById(string id)
Parameters
Type Name Description
string id

The SAP ID of the context menu item.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)