# Get Selected Value from Dropdown

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

## **Syntax**

**Input Value:** `N/A`

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

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

| Argument                                    | Description                                                        |
| ------------------------------------------- | ------------------------------------------------------------------ |
| <p>\<Dynamic Variable></p><p>(Required)</p> | This dynamic variable stores the value selected from the dropdown. |
| <p>\<Dynamic Variable></p><p>(Optional)</p> | This dynamic variable stores the status as **True** or **False**.  |

### **Example: Retrieving the Selected Value from a Dropdown List**

In this example, we explain how to fetch the currently selected option from a dropdown list.

* **Action:** Get Selected Value from Dropdown
* **Input Value:** N/A
  * This action does not require any value in the Input Value column.
* **Output Value:** {Dropdown}
  * The selected dropdown value is (e.g., All) stored in the **{Dropdown}** dynamic variable.
  * If a second output variable is defined, it stores the action status with the following possible values:
    * **True**: If the selected value is retrieved successfully.
    * **False**: If the selected value is not retrieved successfully.
* **Logical Explanation**: The **Get Selected Value from Dropdown** action executes without requiring input. The action fetches the value currently selected in the targeted dropdown element. The retrieved value (e.g., All) is stored in the **{Dropdown}** variable.

<figure><img src="/files/bsuIvxSrbdy45FjcpuDs" 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/get-selected-value-from-dropdown.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.
