# Select by value

This is a pre-built Action located under the captured dropdown element. The functionality of this action in Avo Assure is to select a value from the dropdown based on the input provided. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<value>`&#x20;

| Argument                      | Description                                                                                                                                                          |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<value><br>(Required)</p> | <p>Provide the value which you wants to select from the dropdown or list.</p><p>Supported input format: </p><ul><li>Numeric</li><li>Text </li><li>Dynamic </li></ul> |

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example: Selecting an Option from a Dropdown using a Numeric Value**

In this example, we explain how to select a specific option from a dropdown based on the numeric value provided.

* **Action**: Select By Value
* **Input Value**: 2
  * The first argument (**2**) specifies the numerical value representing the option to be selected from the dropdown.
* **Output Value**: {Status}
  * The result of the selection operation is stored in the **{Status}** dynamic variable with the following possible values:
    * **True**: If the value is selected successfully.
    * **False**: If the value is not selected successfully.
* **Logical Explanation**: The **Select By Value** action takes the value from the **Input Value** column (**2**). It identifies the corresponding option in the captured dropdown element and performs the selection. After the option is selected, the action stores the result (**True**) in the **{Status}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FuXXL1XuZY2FxmY0Fpmkg%2Fimage.png?alt=media&#x26;token=3f27d106-e4de-4599-8b76-2f78b0090ecc" alt=""><figcaption></figcaption></figure>
