# Select By Value

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 from the dropdown or list within the specified table cell based on the value provided in the input. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<Row>;<Col>;<Object Type>;<index>;<value>`&#x20;

| 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><br> (Required)</p> | Provide the type of object within the input value  as dropdown or list |
| <p>\<index> <br>(Required)</p>       | Provide the index of the object within the input value field.          |
| <p>\<value><br> (Required)</p>       | Provide the exact value you want to select from the dropdown or list.  |

**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 a Value from a Dropdown in a Table Cell**

In this example, we explain how to select a specific value from a dropdown or list box located within a particular cell of a captured table.

* **Action**: Select By Value
* **Input Value**: 4;2;dropdown;1;Shipped
  * The first argument (**4**) specifies the row number.
  * The second argument (**2**) specifies the column number.
  * The third argument (**dropdown**) specifies the type of object present inside the cell.
  * The fourth argument (**1**) specifies the object index if multiple objects are present.
  * The fifth argument (**Shipped**) specifies the value that needs to be selected from the dropdown.
* **Output Value**: {Status}
  * The result of the selection action 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 reads the details from the **Input Value** column (**4;2;dropdown;1;Shipped**). It identifies the table cell located at row 4 and column 2, detects the dropdown element present within that cell, and searches for the value **Shipped** within the dropdown and select. The outcome of this operations (**True**) is stores in the **{Status}** variable.

<figure><img src="/files/bTA9AJIlO1GmtEbUEv8O" 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-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.
