> 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/verify-style.md).

# Verify Style

This is a pre-built Action located under the captured **Grid Element**. The functionality of this Action in Avo Assure is to verify whether the specified style attribute and style value match the corresponding style properties of the captured grid and store the verification result in a dynamic variable.

## Syntax

**Input Value**: `<Style attribute>;<Style Value>`

| Argument                                | Description                                                                                                      |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| <p>\<Style attribute><br>(Required)</p> | Provide the name of the style attribute to verify. For example, background-color, font-size, color, font-weight. |
| <p>\<Style Value><br>(Required)</p>     | Provide the expected value of the specified style attribute. For example, rgb (255, 0, 0), 16px, bold.           |

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

| Argument                                                                | Description                                                                                  |
| ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| <p>\<Dynamic Variable> (Optional);\<Dynamic Variable>(Optional)<br></p> | Both dynamic variable stores the verification and execution result as **True** or **False**. |

### Example: Verifying the Background Color of a Grid

In this example, we explain how to verify the background color of a captured grid.

* **Action**: verifyStyle
* **Input Value**: background-color;rgb(255, 255, 255)
  * The first argument (**background-color**) specifies the style attribute to be verified.
  * The second argument (**rgb(255, 255, 255)**) specifies the expected value of the style attribute.
* **Output Value**: {Status}
  * The verification result is stored in the **{Status}** dynamic variable.
    * **True**: If the actual background color of the captured grid matches the expected value.
    * **False**: If the actual background color does not match the expected value, or the style verification fails.
* **Logical Explanation**: The **verifyStyle** action takes the values from the Input Value column (**background-color;rgb(255, 255, 255)**). The action retrieves the current value of the specified style attribute from the captured grid and compares it with the expected style value. If both values match, the action stores **True** in the **{Status}** variable. Otherwise, it stores **False**.

<img src="/files/HUkShvFAOrHDQiXEd6w6" alt="" height="45" width="626">

#### Knowledge Bites

The following examples show different style verification scenarios:

| Style Attribute  | Input Value                         | Result                                                         |
| ---------------- | ----------------------------------- | -------------------------------------------------------------- |
| Background Color | background-color;rgb(255, 255, 255) | Returns **True** if the grid background color is white.        |
| Font Weight      | font-weight;bold                    | Returns **True** if the grid text is displayed in bold format. |
| Font Size        | font-size;14px                      | Returns **True** if the grid font size is 14 pixels.           |
| Text Color       | color;rgb(0, 0, 0)                  | Returns **True** if the grid text color is black.              |


---

# 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/verify-style.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.
