For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

<Style attribute> (Required)

Provide the name of the style attribute to verify. For example, background-color, font-size, color, font-weight.

<Style Value> (Required)

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

<Dynamic Variable> (Optional);<Dynamic Variable>(Optional)

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.

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.

Last updated