# Select Value by Text

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

## Syntax

**Input Value:** `<Row>;<Col>;<Object Type>;<index>;<input 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> | <p>Provide the type of object inside the cell. <br><strong>Note</strong>: Use object type as dropdown or list.</p> |
| <p>\<index> <br>(Required)</p>       | Provide the index of the dropdown or list object inside the cell.                                                  |
| <p>\<input 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 Specific Table Cell**

In this example, we explain how to select a value from a dropdown present inside a particular table cell.

* **Action:** Select Value by Text
* **Input Value:** 2;3;dropdown;1;Casual Leave
  * The first argument (**2**) specifies the row number.
  * The second argument (**3**) specifies the column number.
  * The third argument (**dropdown**) indicates the control type.
  * The fourth argument (**1**) specifies the index if required.
  * The fifth argument (**Casual Leave**) is the exact text 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 successfully selected from the dropdown.
    * **False**: If the value is not successfully selected from the dropdown.
* **Logical Explanation:** The **Select Value by Text** action reads the details from the **Input Value** column (**2;3;dropdown;1;Casual Leave**). It identifies the table cell at row 2 and column 3, opens the dropdown present in that cell, and attempts to select the value (Casual Leave). The final status of this selection (**True**) is stored in the {**Status**} variable.

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