For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Check attribute Test Step

When to use it

  • Confirm a link points at the expected URL or path.

  • Verify an image src or a data-testid after 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

Tags: check, attribute, test, expect, assert, element

Last updated