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

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)

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.

Argument
Description

<Attribute Name> (Required)

Provide the name of the attribute to retrieve its value. For example, class, id, style, value.

<css>(Optional)

Not Applicable

Output Value:

Argument
Description

<Attribute Value> (Required)

Stores the actual value of the specified attribute retrieved from the captured grid.

<Status> (Optional)

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.

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

Last updated