Auto-Match — Self-Healing Selectors
Auto-Match automatically repairs broken CSS or XPath selectors in production using multi-dimensional DOM fingerprints stored in an embedded Sled database.
5 min read Updated July 2026
How It Works
- First Match: When a selector matches an element, Auto-Match generates a multi-dimensional DOM fingerprint (tag, classes, ID, parent tags, depth, text hash).
- Fingerprint Cached: The fingerprint is cached in an embedded Sled database (
.crawlingo/). - Auto-Healing: If a website redesign breaks the selector, Auto-Match scans candidate nodes, runs Jaro-Winkler similarity comparisons against stored fingerprints, and binds the correct element.
Usage
Fingerprint Components & Default Weights
| Feature | Default Weight | Description |
|---|---|---|
| tag | 1.0 | HTML element tag (div, span, h1, etc.) |
| class_name | 0.8 | CSS class list comparison |
| id | 0.6 | Element ID attribute |
| attributes | 0.4 | All key-value attribute pairs |
| parent_tag | 0.5 | Parent DOM node tag name |
