Class GuiToolbar
Wraps a SAP GUI application toolbar (GuiToolbar). This is the row of icon buttons at the top of a screen.
public class GuiToolbar : GuiComponent
- Inheritance
-
GuiToolbar
- Inherited Members
Properties
ButtonCount
Number of buttons in the toolbar.
public int ButtonCount { get; }
Property Value
Methods
GetButtonTooltip(int)
Returns the tooltip text of a button by zero-based index.
public string GetButtonTooltip(int index)
Parameters
indexint
Returns
PressButton(int)
Presses a toolbar button by its zero-based index.
public void PressButton(int index)
Parameters
indexint
PressButtonByFunctionCode(string)
Presses a toolbar button by its SAP function code string
(e.g. "SAVE", "BACK", "EXEC").
The function code is visible in the SAP Script Recorder output.
To press a button by its component path, use
session.FindById("wnd[0]/tbar[1]/btn[8]").Press() instead.
public void PressButtonByFunctionCode(string functionCode)
Parameters
functionCodestring