Get Object Attribute Value

This is a pre-built Action that comes for the captured Element, instructs the Avo Assure to fetch the attribute value and store both the attribute value and the fetch status in the dynamic variable.

Syntax

Input Value: <AttributeName>;<css>(Optional)

Argument
Description

<AttributeName> (Required)

The attribute name supported across various HTML elements, including form controls like input, select, text area, and button.

<css> (Optional)

If the attribute exists inside the HTML tag, CSS is not required. If the attribute is from a CSS file, the CSS path must be mentioned.

Output Value:

Argument
Description

<AttributeValue> (Required)

The value of the specified attribute.

<Status> (Required)

This dynamic variable holds the status of the action as True or False

Example

Fetches the attribute value of a captured element for validation within the application.

The Get Attribute Value action takes the input from the Input Value column (e.g., ID) and retrieves the value of that attribute on the designated element, in the output value column give Attribute Value {Button}. The result of the action is stored in the {Status} variables, with possible values:

  • True – if the attribute is successfully fetched

  • False – if the attribute fetch fails due to missing tag or invalid path

Last updated

Was this helpful?