Debugging with Dashcam
Every test automatically records a video replay:1
Get Replay URL
2
Open Replay
Visit console.testdriver.ai or click the URL directly.
3
Analyze Replay
Dashcam shows:
- Full video of test execution
- Timeline of all actions
- Console logs synchronized
- Network requests
- Element highlights
- Screenshots at key moments
Dashcam Features
- Play/pause, speed control
- Jump to any action via timeline
- Frame-by-frame stepping
- Download as MP4
- Share with team
- View network waterfall
- See console logs
Understanding Failures
When a test fails, TestDriver provides rich debugging information:Typical Error Output
Common Debugging Scenarios
Element Not Found
Element Not Found
Error:
ElementNotFoundError: Could not find 'button'Debug steps:- Watch Dashcam replay - See what’s on screen
-
Check similarity score:
> 0.8- Close match, be more specific0.5-0.8- Partial match, adjust selector< 0.5- No match, element might not be present
-
Try variations:
-
Check timing - Element might load later:
Assertion Failures
Assertion Failures
Error:
AssertionError: 'welcome message is visible' failedDebug steps:- Watch Dashcam - Verify what’s actually displayed
-
Simplify assertion:
-
Check timing:
-
Use find() instead:
Test Timeout
Test Timeout
Error:
Test timed out after 120000msDebug steps:-
Increase timeout:
vitest.config.mjs
- Check sandbox logs - Look for network issues
- Watch Dashcam - See where test got stuck
-
Add checkpoints:
Flaky Tests
Flaky Tests
Issue: Test passes sometimes, fails other timesSolutions:
- Check Dashcam replays - Compare passing vs failing runs
-
Increase stability delay:
-
Wait for network:
-
Disable animations in test mode:
Debugging Tools
1. Console Logging
2. Screenshots
3. Step-by-Step Execution
4. Network Inspection
Debugging in CI/CD
When tests fail in CI:1
Get Dashcam URL
CI output includes replay URLs:
2
Download Artifacts
Save debug screenshots and logs:
.github/workflows/test.yml
3
Reconnect to Sandbox

