> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/web/dropdown/select-combo-value-by-index.md).

# Select Combo Value by Index

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

## **Syntax**

**Input Value**: `<index value>`

{% hint style="info" %}
**Supported Input Formats**:

* **Text**: Plain string input.
* **Static Value**: A fixed value that you manually provide.
* **Dynamic Variable**: Value retrieved from a previously stored output variable.
  {% endhint %}

| Argument                            | Description                                                                                                                                           |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<index value><br>(Required)</p> | <p>Provide the index value to be selected from the dropdown or list.</p><p><strong>Note</strong>: The index value starts from <strong>0</strong>.</p> |

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

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

### **Example: Selecting an Item from a Combo Box (dropdown) Using Index**

In this example, we explain how to select an option from a combo box (dropdown) using its index position.

* **Action**: Select Combo Value by Index
* **Input Value**: 2
  * The first argument (**2**) specifies the index position of the option selected from the combo box or dropdown.
* **Output Value**: {Status}
  * The execution result is stored in the **{Status}** dynamic variable with the following possible values:
    * **True**: If the option at the specified index is successfully selected from the combo box.
    * **False**: If the combo box is not found or the index value is out of range.
* **Logical Explanation**: The **Select Combo Value by Index** action takes the value from the **Input Value** column (**2**). This action identifies the combo box (dropdown) and selects the option available at index position **2**. After successful selection, the action stores **True** in the **{Status}** variable.

<figure><img src="/files/6deyDoTye11o9R1LIrrv" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
