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

Verify Attribute

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 attribute of the captured grid matches the expected attribute value provided in the input and store the verification result in a dynamic variable.

Syntax

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

Note:

  • The Attribute Name is mandatory for this Action.

  • Attribute Value is optional. If provided, Avo Assure verifies whether the actual attribute value matches the expected value.

  • The css parameter is optional and can be used to specify that the attribute verification should be performed using CSS properties.

  • Ensure that the specified attribute exists for the captured grid.

Argument
Description

<Attribute Name>

(Required)

Provide the name of the attribute to verify. For example, disabled, readonly, class or id.

<Attribute Value> (Optional)

Provide the expected value of the specified attribute.

<css> (Optional)

Not Applicable

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

Argument

Description

<Dynamic Variable> (Required)

Stores the verification result as True or False, indicating whether the attribute verification was successful.

Example 1: Verifying the Presence of an Attribute in a Grid

In this example, we explain how to verify whether a specific attribute is present in the captured grid.

  • Action: VerifyAttribute

  • Input Value: class

    • The input value (class) specifies the attribute name that needs to be verified in the captured grid.

  • Output Value: {Status}

    • The verification result is stored in the {Status} dynamic variable.

      • True: If the specified attribute is present in the captured grid.

      • False: If the specified attribute is not present in the captured grid or the verification fails.

Logical Explanation: The Verify Attribute action takes the value from the Input Value column (class) and checks whether the specified attribute exists in the captured grid. If the attribute is found, the action stores True in the {Status} variable.

Example 2: Verifying an Attribute with an Expected Value

In this example, we explain how to verify whether a specific attribute of the captured grid matches the expected value.

  • Action: Verify Attribute

  • Input Value: class;ag-root ag-unselectable ag-layout-normal ag-body-horizontal-content-no-gap ag-body-vertical-content-no-gap

    • The first argument (class) specifies the name of the attribute to verify.

    • The second argument (ag-root ag-unselectable ag-layout-normal ag-body-horizontal-content-no-gap ag-body-vertical-content-no-gap) specifies the expected value of the class attribute.

  • Output Value: {Status}

    • The execution result is stored in the {Status} dynamic variable with the following possible values:

      • True: If the actual value of the class attribute matches the expected value.

      • False: If the actual value does not match the expected value or the attribute is not found.

  • Logical Explanation: The Verify Attribute action takes the values from the Input Value column (class;ag-root ag-unselectable ag-layout-normal ag-body-horizontal-content-no-gap ag-body-vertical-content-no-gap). The action retrieves the actual value of the specified class attribute from the captured grid and compares it with the expected value. If both values match, the action stores True in the {Status} variable.

Last updated