playInteractive Demo

See how ContextQA's AI Self-Healing detects broken locators when the UI changes and repairs test steps automatically — without any engineer intervention.

When your application's UI changes between releases, test locators that relied on old element attributes will break. ContextQA's self-healing engine detects these failures at runtime, finds the best matching element on the updated page, and repairs the step automatically — or flags it for manual review when confidence is lower. Select a scenario to see how each case is handled.

1

UI Change Detected

A button on the checkout page was renamed and its ID was updated between releases.

What changed:

  • Element ID: btn-submitcheckout-submit-btn

  • Button text: "Submit Order" → "Place Order"

The stored locator in the test step no longer matches any element on the page. Without self-healing, the test would fail immediately.

circle-info

AI Agent: Detects that the element referenced in the test step cannot be found using the stored locator, and activates the healing engine.

2

AI Healing Engine Activates

The self-healing engine evaluates candidate elements on the updated page using visual appearance, semantic role, and surrounding context.

Healing timeline:

  1. Element not found with stored locator

  2. AI locator engine activated

  3. Candidate elements scored by visual and semantic similarity

  4. Best match selected: "Place Order" button, role=button

  5. Locator updated in test step

circle-info

AI Agent: Multiple candidate elements are evaluated and scored. The best match is selected based on how closely it resembles the original element in terms of visual position, role, and surrounding page context.

3

Auto-Healed ✓

Confidence score: 96% — exceeds the auto-heal threshold.

The locator is automatically updated in the test step. The test continues executing and passes. No engineer action is required.

circle-check
Outcome
Detail

Decision

Auto-Healed

Action Required

None

Test Result

Passes after healing

Audit Trail

Healed step logged in execution results


Last updated

Was this helpful?