# 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="/files/MF3xpdaayJ9pL47GxzgH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/dropdown/select-by-value.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
