# Select Key By Text

This is a pre-built action available under the **Captured Dropdown Element** from the **SAP GUI Application**. The functionality of this action in Avo Assure to select an item from the dropdown list based on the Key value of that item.

### **Syntax**

**Input Value:** `<input text>`&#x20;

| Argument                           | Description                                                                 |
| ---------------------------------- | --------------------------------------------------------------------------- |
| <p>\<input text><br>(Required)</p> | Specify the visible text to select corresponds key value from the dropdown. |

**Output Value:**&#x20;

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

**Example**

**Selects an item in the captured SAP dropdown list using the key value of that option**

The **Select Key By Text** action takes the value from the input value column (e.g., **CustomerID**) and selects the dropdown entry whose key matches the given text.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FVDFltawfNWAMDdqDYAl2%2Fimage.png?alt=media&#x26;token=6bc0b635-119c-4578-843c-39d490505cc3" alt=""><figcaption></figcaption></figure>
