> 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/grid/get-object-attribute-value.md).

# Get Object Attribute Value

This is a pre-built Action located under the captured **Grid Element**. The functionality of this Action in Avo Assure is to retrieve the value of the specified attribute from the captured grid based on the attribute name provided in the input value and store the result in a dynamic variable.

## Syntax

**Input Value**: `<Attribute Name>;<css>(Optional)`

{% hint style="info" %}
Note:

* The Attribute Name is mandatory for this Action.
* The returned value depends on the actual attribute present in the DOM of the grid element.
  {% endhint %}

| Argument                               | Description                                                                                    |
| -------------------------------------- | ---------------------------------------------------------------------------------------------- |
| <p>\<Attribute Name><br>(Required)</p> | Provide the name of the attribute to retrieve its value. For example, class, id, style, value. |
| \<css>(Optional)                       | Not Applicable                                                                                 |

**Output Value**:

| Argument                                | Description                                                                                                      |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| <p>\<Attribute Value><br>(Required)</p> | Stores the actual value of the specified attribute retrieved from the captured grid.                             |
| <p>\<Status><br>(Optional)</p>          | Stores the execution status as True or False, indicating whether the attribute value was successfully retrieved. |

#### Example: Fetching an Attribute Value from a Grid

In this example, we explain how to retrieve the value of a specific attribute from the captured grid.

* **Action**: Get Object Attribute Value
* **Input Value**: class
  * The input value, class, specifies the attribute whose value needs to be fetched from the captured grid.
* **Output Value**: {Attribute Value};{Status}
  * The retrieved attribute value is stored in the **{AttributeValue}** dynamic variable.
  * If a second output variable is provided, the Action returns the execution status as **True** or **False**.
    * **True**: If the attribute value is successfully retrieved from the grid.
    * **False**: If the attribute is not found or the retrieval operation fails.
* **Logical Explanation**: The **Get Object Attribute Value** action reads the attribute name from the **Input Value** column (**class**). Avo Assure identifies the captured grid and fetches the value of the specified attribute from its DOM representation. The retrieved value is stored in the **{Attribute Value}** dynamic variable, and the execution status is stored in the optional status variable.

<img src="/files/V4696diBNPZc7NeU6Bf6" alt="" height="47" width="626">

#### Knowledge Bites

The following examples show different attribute retrieval scenarios:

| Scenario                  | Input Value | Result                                       |
| ------------------------- | ----------- | -------------------------------------------- |
| Get class attribute value | class       | Returns the class value of the captured grid |
| Get id attribute value    | id          | Returns the id of the captured grid          |


---

# 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/grid/get-object-attribute-value.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.
