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
- Detection — Agent identifies that a locator no longer matches
- Analysis — AI evaluates the page to find the intended element
- Adaptation — Locator is updated to match the new structure
- Verification — Agent confirms the healed locator works correctly
- Logging — The change is recorded in the healing history
Healing Strategies
| Strategy | Description |
|---|---|
| Visual matching | Find element by visual similarity and position |
| Semantic analysis | Understand what the element represents conceptually |
| Context matching | Use surrounding elements to identify the target |
| Attribute fallback | Try 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