Table of Contents

Interface IToolBar

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

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

menuPathParts object[]

The menu path elements can be: logical name (string), full path (string), or 1-based index (int).

Separate elements with commas.

Returns

string

PressButton(string)

Presses the specified toolbar button.

void PressButton(string buttonId)

Parameters

buttonId string

The button ID in text format.

PressContextButton(string)

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

void PressContextButton(string buttonId)

Parameters

buttonId string

The 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

path string

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.

void SelectMenuItem(uint index)

Parameters

index uint

1-based.

SelectMenuItemById(string)

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

void SelectMenuItemById(string id)

Parameters

id string

The SAP ID of the context menu item.