verifyAttribute
Last updated
Was this helpful?
Last updated
Was this helpful?
This ‘verifyAttribute’ is pre-built Action comes for the captured Element. It instructs the Avo Assure client to verify the attribute name provided in the input value and store the result in the output variable.
Input: <Attribute Name>;<Attribute Value (Optional)>;<css>(Optional)
Note: The attribute name specifies the property or characteristic of an HTML element. For example, id, class, href, and src are attribute names. These are predefined in HTML and help define the purpose or behaviour of the element.
The attribute value is assigned to an attribute name and specifies the particular property or behaviour for the element. It typically appears in quotes.
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: <Dynamic Variable> ;<Dynamic Variable>(Optional)
Consider a scenario where a user is testing a health application. The goal is to verify a captured element. Using the ‘verifyAttribute’ Action, the user can validate the attribute of an element against a provided input value and store the result in an output variable.
type
This action should verify input value with attribute value and store the result in output variable as true in output variable {Status} as true.
The action verifies attribute value with input value and output variable {status} contains ‘true’, which can be used display or further processing.