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)
<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.
Note:
The attribute name is supported across various HTML elements, including form controls like input, select, text area, and button.
When user want to verify attribute that is present inside the HTML tag, user don't need to mention the CSS. However, if the user wants to verify the attribute from the CSS file, then user must mention the CSS in the input field.
The attribute value specifies the value of an <input> element. The value attribute is used differently for different input types: For “button”, “reset”, and “submit” - it defines the text on the button. For “text”, “password”, and “hidden” - it defines the initial (default) value of the input field.
Status: The status will help us check whether the attribute value is fetched or not and store the status as true or false.
Output Value:
<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

Note: After executing, you can see the Test Steps result in the Avo Assure Client console.

Last updated
Was this helpful?