Store html

Store html

Store HTML

The Store HTML step allows you to capture the inner HTML of a specific element and save it into the value store for use later in your test.

Instead of only checking what is displayed, you can access the raw structure behind it. This gives you deeper control over validation, comparison, transformation, and reuse.

Capture structure, not just text

Modern applications often render complex dynamic content. Sometimes checking visible text is not enough. You may want to:

  • Inspect embedded attributes

  • Validate injected markup

  • Confirm that dynamic components render correctly

  • Compare HTML output between steps

  • Store rendered content for later assertions

By saving the element’s HTML, you gain full access to its underlying structure.

Reuse captured HTML anywhere

Once stored, the HTML can be:

  • Passed into a custom script node

  • Compared against another stored value

  • Sent to an external API

  • Logged for debugging

  • Used inside conditional logic

  • Included in notifications or reports

This makes it especially powerful in advanced flows where behaviour depends on generated markup.

Support dynamic testing strategies

Storing HTML is particularly useful when testing:

  • Content management systems

  • Personalised components

  • A/B test variations

  • Rich text editors

  • Template rendering systems

  • Dynamic pricing or promotional blocks

Instead of hardcoding expectations, you can capture content at runtime and make smarter comparisons.

Pair with debugging and comparison tools

Store HTML works well alongside:

  • Debug value

  • Run Browser Script

  • Replace text

  • Check text

  • Check attribute

Together, these steps allow you to inspect, transform, and validate page structure with precision.