# Select Value by Index

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to select an option based on the index value specified in the input for a dropdown or list located within a table cell of the AUT. The result is stored in the given dynamic variable for further use during test execution

## Syntax

**Input Value**: `<Row>;<Col>;<Object Type>;<index>;<index>`

| Argument                               | Description                                                              |
| -------------------------------------- | ------------------------------------------------------------------------ |
| <p>\<Row><br>(Required)</p>            | Provide the row number of the table cell you want to click.              |
| <p>\<Col><br>(Required)</p>            | Provide the column number of the table cell you want to click.           |
| <p>\<Object Type></p><p>(Required)</p> | Provide the type of object inside the cell. Use object type as dropdown. |
| <p>\<index><br>(Required)</p>          | Provide the index of the dropdown object inside the cell.                |
| <p>\<index><br>(Required)</p>          | Index of the value to be selected from the dropdown (starting from 0)    |

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

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

**Example**

**Performs selection of a dropdown option based on the index in a specific table cell.**

The **Select Value by Index** action takes the value from the Input Value column (e.g., **3;2;dropdown;1;2**) and selects the option at the given index from the dropdown in the specified cell. The status of the action is stored in the **{DropdownStatus}** variable, with the following possible values:

* **True** – if the option is selected successfully
* **False** – if the selection fails or an error occurs

<figure><img src="/files/FHfXwXfSE3i9czVVF3fk" 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/table-1/select-value-by-index.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.
