# Get Pop Up Text

This is a pre-built Action located under the **@Sap Element**. The functionality of this action in Avo Assure is to retrieve the text displayed in a pop-up window of the SAP GUI application and save the result in a dynamic variable.&#x20;

### Syntax&#x20;

**Input Value:** `<Index>(Optional)`

| Argument                           | Description                                                                                                                                                                      |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Index> </p><p>(Optional) </p> | <p>Enter the <strong>index number of the pop-up</strong> to check when multiple pop-ups appear. <br><em><strong>Note:</strong> The value starts from 0th index (zero).</em> </p> |

**Output Value**&#x20;

| Argument                                      | Description                                                |
| --------------------------------------------- | ---------------------------------------------------------- |
| <p>\<Dynamic Variable> </p><p>(Required) </p> | This variable holds the retrieved **pop-up message text.** |
| <p>\<Dynamic Variable></p><p>(Optional) </p>  | This variable stores the status as **True** or **False**.  |

**Example:**&#x20;

**Retrieving 'Information' Text from a Pop-Up Using the Get Pop-up Text Action**

The **Get Pop Up Text** action takes the value from the Input Value column **(e.g., 0)** to specify the index of the pop-up when multiple pop-ups are present. If no index is provided, the default pop-up text is considered. The retrieved text **(e.g., Information)** is stored in the **{PopupText}** variable.

**With index value:**

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FEy3pE9BhBe2CVUQr4x1R%2Fimage.png?alt=media&#x26;token=56ac0c1c-ec1f-4ebe-bc1e-fc3a4414c011" alt=""><figcaption></figcaption></figure>

**Without Index Value:**

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F5xTdkIfpt5hV9ur3HXp4%2Fimage.png?alt=media&#x26;token=d894a14e-013c-40de-bdd0-dceba0506e75" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FWADL6eQJf4WLyAj31ZXU%2Fimage.png?alt=media&#x26;token=e747330a-24cc-4346-acbb-7ad9d84d14b1" alt=""><figcaption></figcaption></figure>
