verify Attribute
This is a pre-built Action that comes for the captured Element, instructs the Avo Assure to verify the attribute name provided in the input value and store the result in the dynamic variable.
Syntax
Input Value: <Attribute Name>;<Attribute Value(Optional)>;<css>(Optional)
<Attribute Name>
(Required)
Name of the attribute to be verified (e.g., id, type, class, )
<Attribute Value>
(Optional)
Expected value for the attribute
<css>
(Optional)
Specify CSS to verify style-based attributes (if required)
Note:
The attribute name specifies the property or characteristic of an HTML element. For example, id, class 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 Value
<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)
This dynamic variable holds the status of the action as True or False
Example
Verifies if the element's type attribute exists or matches the expected value.
The verify Attribute action takes the input from the Input Value column (e.g., ID) and checks whether the element contains that attribute. The result of the action is stored in the {Verify} variable, with possible values:
True – if the attribute exists (and matches the value, if provided)
False – if the attribute doesn't exist or doesn't match the expected value
Note: If an expected value is also provided (e.g.,IDAttribute;submit) the action checks for a match.

Last updated
Was this helpful?