Self-Healing Tests

How LoveAutomate's AI agents automatically adapt tests when your UI changes, eliminating maintenance overhead.

Self-healing is one of LoveAutomate's most powerful features. When your UI changes, our AI agents adapt automatically.

How It Works

Traditional test automation breaks when:

  • A CSS class name changes
  • An element moves to a different location
  • The DOM structure is refactored
  • A button label is updated

LoveAutomate's Healer Agent handles all of these by understanding elements at a semantic level, not just their technical attributes.

Healing Process

  1. Detection — Agent identifies that a locator no longer matches
  2. Analysis — AI evaluates the page to find the intended element
  3. Adaptation — Locator is updated to match the new structure
  4. Verification — Agent confirms the healed locator works correctly
  5. Logging — The change is recorded in the healing history

Healing Strategies

StrategyDescription
Visual matchingFind element by visual similarity and position
Semantic analysisUnderstand what the element represents conceptually
Context matchingUse surrounding elements to identify the target
Attribute fallbackTry alternative attributes (aria-label, data-testid, text)

Configuration

Enable or customize self-healing in your workflow:

agent:
  auto_heal: true
  heal_confidence: 0.8  # minimum confidence to auto-apply (0-1)
  heal_notification: true  # notify team when healing occurs

Healing Reports

After each healing event, you'll see:

  • What changed in the UI
  • How the agent adapted
  • Confidence score of the fix
  • Before/after comparison