# Get Object Status

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to retrieve the status of objects such as radio buttons or checkboxes present in a table cell. The result is stored in the given dynamic variable for further use during test execution.

{% hint style="info" %}
For the object, it may retrieve the following statuses:

* **Checked**: if the radio button or checkboxes are already checked
* **Unchecked**: if the radio button or checkboxes are already unchecked
  {% endhint %}

## Syntax

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

| Argument                            | Description                                                                         |
| ----------------------------------- | ----------------------------------------------------------------------------------- |
| <p>\<Row> <br>(Required)</p>        | Provide the row number of the table cell you want to check.                         |
| <p>\<Col> <br>(Required)</p>        | Provide the column number of the table cell you want to check.                      |
| <p>\<Object Type><br>(Required)</p> | Provide the type of object inside the cell (radiobutton or checkbox).               |
| <p>\<index><br>(Required)</p>       | Provide the index of the object inside the cell **Note**: Index is starting from 0. |

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

| Argument                                 | Description                                                                |
| ---------------------------------------- | -------------------------------------------------------------------------- |
| <p>\<Dynamic Variable><br>(Optional)</p> | This dynamic variable stores the retrieved status as checked or unchecked. |
| <p>\<Dynamic Variable><br>(Optional)</p> | This dynamic variable stores the status as **True** or **False**.          |

### Example: Retrieving the Status of a Radio Button from a Specific Table Cell

In this example, we explain how to retrieve the status of an object (radio button) located within a particular cell in a table.

* **Action**: Get Object Status
* **Input Value**: 2;5;radiobutton;1
  * The first argument (**2**) specifies the row number.
  * The second argument (**5**) specifies the column number.
  * The third argument (**radiobutton**) specifies the object type to be checked.
  * The fourth argument (**1**) specifies the index of the object within the cell.
* **Output Value**: {StatusResult}
  * The retrieved object status (Selected) is stored in the **{StatusResult}** dynamic variable.
  * If a second output variable is provided, the action returns the execution status as **True** or **False**:
    * **True**: If the object status is retrieved successfully.
    * **False**: If the object status is not retrieved successfully.
* **Logical Explanation**: The **Get Object Status** action reads the values from the **Input Value** column (**2;5;radiobutton;1**). The action identifies the table cell at row 2 and column 5, locates the specified object type (radio button or checkbox), and determines its selection status. The retrieved result (Selected) is stored in the **{StatusResult}** variable.

<figure><img src="/files/btDqU6vuim9aox1r6WSL" 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/get-object-status.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.
