Get Object Attribute Value
Last updated
Was this helpful?
Last updated
Was this helpful?
This ‘Get Attribute Value’ is pre-built Action comes for the captured Element. It instructs the Avo Assure client to fetch attribute value and store attribute name and status in output variable.
Input: <AttributeName>;<css>(Optional)
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.
Output: <AttributeValue>;<Status>
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.
Consider a scenario where a user is testing an e-commerce application and needs to verify the functionality of Get Object Attribute Value. The user does not know the captured element’s attribute value. By using the 'Get Object Attribute Value' Action, the user can easily fetch the attribute value for further validation or use.
It should retrieve the attribute value of the specified element in the application and store the result in {Buy Now} output variable and {Status} variable will store as true.
This action successfully retrieves the attribute value of the specified element in application and stores the result in output variable {Buy Now} as button and {Status} is contain true.