Skip to main content

How It Works

  1. A test runs and a step fails (e.g., a button can’t be found)
  2. The CLI’s AI analyzes the current page state — what’s visible, what changed
  3. It attempts to recover: finding the element by alternative means, waiting for the right condition, or adapting to the new UI
  4. If recovery succeeds, the test continues and the step is marked as healed
  5. If recovery fails, the test is marked as failed and escalated to auto-healing
This all happens transparently during test execution — no manual intervention needed.

What Auto-Recovery Can Fix

IssueHow It Recovers
Changed selectorsFinds the element using alternative attributes (text, role, position)
Timing issuesWaits for the right conditions before proceeding
Minor UI changesAdapts to layout or text changes that don’t affect the flow

What Auto-Recovery Can’t Fix (But Auto Healing can!)

Some issues require deeper analysis and code changes:
  • Major flow changes (steps added or removed)
  • Completely redesigned pages
  • Changed business logic
  • New authentication requirements
These are handled by Auto-Healing, which creates a full AI agent session to fix the tests.

Viewing Recovery Results

In your test run results, recovered tests show up in the healed count:
ResultMeaning
PassedTest passed without any recovery needed
HealedTest had a failure that was automatically recovered
FailedTest failed and couldn’t be recovered
AUTO_RECOVER

Enabling Auto-Recovery

Auto-recovery is enabled when the test run is configured in auto-heal mode. The run mode is configured in your project settings — when enabled, failing test steps will automatically attempt recovery before being reported as failures.