Check Attribute
Compare an HTML attribute on an Element.
Check Attribute compares an HTML attribute on an Element against what you expect. Use it for href, src, data-*, and other attributes.

When to use it
Confirm a link points at the expected URL or path.
Verify an image
srcor adata-testidafter dynamic content loads.Store the attribute first with Store element attribute when a later step needs the same value.
Configure
Basics
Field
What to set
Element
The Element to check
Attribute
Attribute name (for example href or data-status)
Comparison Type
Comparison Type (equals by default)
Value
Expected attribute value as text and/or a Value
Advanced
Field
What to set
Status on fail
When should screenshots be taken?
Always or On Failures (default)
Value Standardization
Related
Tags: check, attribute, test, expect, assert, element
Last updated