Selector Cache Dashboard
Access cache management at app.testdriver.ai/cache:Selector Cache
Browse all cached selector entries with visual previews
Cache Overview
The cache stores AI vision analysis results for faster test execution:Cache Hit Rate
Percentage of selectors found in cache
- Higher is better
- Typical: 80-95% after a few runs
- Shows cache effectiveness
Total Entries
Number of cached selectors
- Grows with test diversity
- Automatically managed
- Cleared on code changes
Cache Size
Storage used by cache
- Screenshots + metadata
- Typical: 10-500 MB
- Automatic cleanup
Minimum Hits
Filter by cache usage
- 0 = Show all entries
- 5+ = Show frequently used
- Optimize cache value
Viewing Cache Entries
Each cached entry shows:Entry Information
- Selector Text - Natural language description used
- Screenshot - Visual preview showing found element
- File - Which test file used this selector
- Context - Additional selector context
- Hash - Unique cache key identifier
- Status - Whether element was found
- Tags - Test metadata and labels
Cache Key Generation
Understanding how cache keys work:- Test file changes → New hash → Fresh cache
- UI changes → Different screenshot → New entry
- Selector changes → Different text → New entry
- Platform changes → Separate cache per OS
Gallery View
Visual browse mode for cache entries:- Click to enlarge screenshot
- Hover to see full selector text
- Color-coded by status (green = found, red = not found)
- Sort by usage frequency
Table View
Detailed list with sortable columns:Filtering Cache Entries
Find specific cached items:- By Cache Key
- By Test File
- By Status
- By Selector Text
Cache Statistics
Per-file and global metrics:Clear Cache
Manage cache storage:Clear All
Remove all cache entries
- Fresh start
- Reclaim storage
- Force re-analysis
Clear by File
Remove specific test file cache
- After UI changes
- Test refactoring
- Targeted cleanup
Clear Failed
Remove not-found entries
- Clean up misses
- Reduce cache size
- Keep only successful matches
Clear Old
Remove entries older than X days
- Automatic cleanup
- Keep recent only
- Configurable threshold
Cache Configuration
Customize caching behavior:Cache Matching Strategies
TestDriver uses three-tier matching:1
Exact Hash Match
Fastest - Perceptual hash comparison
- Speed: < 1ms
- Accuracy: 100%
- Use case: Identical screenshots
2
Pixel Diff Match
Fast - Pixel-by-pixel comparison
- Speed: < 50ms
- Accuracy: 95%+ similarity
- Use case: Minor UI changes (hover states)
3
Template Match
Fallback - Edge detection and structure
- Speed: < 200ms
- Accuracy: 75%+ confidence
- Use case: Layout changes, responsive design
Found Targets Preview
See exactly what elements were cached:Export Cache Data
Download cache information:- JSON
- CSV

