Self-Healing
Agent Mantis automatically adapts to UI changes so your tests don't break with every deployment.
How self-healing works
When a selector no longer matches an element, Agent Mantis:
- Analyses the page structure
- Identifies the most likely matching element
- Updates the selector automatically
- Logs the change for your review
When self-healing applies
- Element ID or class name changed
- Element moved to a different position in the DOM
- Parent container restructured
Reviewing healed selectors
Check the run logs for self-healing events. Each event shows:
- The original selector
- The new selector
- Confidence score