# press Toolbar Button

This is a pre-built action available under the **Captured Grid Element** in the **SAP GUI Application**. The functionality of this action in Assure is used to click on a toolbar button within the Grid based on the tooltip text provided in input.&#x20;

### Syntax&#x20;

**Input Value:** `<Input Button ToolTip Text>`&#x20;

| Argument                                | Description                                                       |
| --------------------------------------- | ----------------------------------------------------------------- |
| \<Input Button ToolTip Text> (Required) | Provide the tooltip text of the button to be pressed in the Grid. |

**Output Value**&#x20;

| Argument                                                      | Description                                                                |
| ------------------------------------------------------------- | -------------------------------------------------------------------------- |
| \<Dynamic Variable> (Optional);\<Dynamic Variable> (Optional) | This dynamic variable holds the execution status as **Ture** or **False**. |

**Example**&#x20;

**Clicks a toolbar button based on its tooltip text**

The **pressToolbarButton** action takes the value from the Input Value column **(e.g., Details)** and clicks the toolbar button whose tooltip matches the provided text.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F1w29THQV1gCxGSUfd9Ld%2Fimage.png?alt=media&#x26;token=725935d7-9960-4109-9d2b-3f6753c4e6ef" alt=""><figcaption></figcaption></figure>
