Troubleshooting
Solutions to common problems in QAID.
Page Discovery Issues
Pages Not Being Discovered
Symptoms:
- Fewer pages found than expected
- Known pages missing from list
Possible Causes & Solutions:
| Cause | Solution |
|---|---|
| Max Pages limit reached | Increase Max Pages parameter |
| Max Depth too shallow | Increase Max Depth parameter |
| JavaScript-only navigation | Increase JS wait time |
| Authentication required | Configure credentials in settings |
| Pages blocked by robots.txt | Check site permissions |
| Network timeout | Check connectivity, retry |
Diagnostic Steps:
- Check the discovery job status for errors
- Review Max Pages and Max Depth settings
- Manually verify pages are accessible
- Check if authentication is needed
Too Many Irrelevant Pages
Symptoms:
- Admin pages discovered
- Utility pages cluttering list
Solutions:
- Blacklist irrelevant pages after discovery
- Add common patterns to blacklist:
/admin/*/logout/wp-admin/*
- Reduce Max Depth to avoid deep navigation
Pages Showing as "Removed"
Symptoms:
- Previously discovered pages now show "removed" status
Causes:
- Page URL changed
- Page deleted from site
- Page now requires authentication
- Network issue during last crawl
Solutions:
- Re-run discovery to check current state
- Verify page exists manually
- Check authentication settings
Element Extraction Issues
Elements Not Detected
Symptoms:
- Interactive elements missing
- Lower element count than expected
Possible Causes & Solutions:
| Cause | Solution |
|---|---|
| Element in Shadow DOM | Not supported; use alternative approach |
| Element requires interaction | Use recording feature |
| Element in cross-origin iframe | Cannot access; check iframe origin |
| JavaScript not fully loaded | Increase wait time |
| Element is hidden | Only visible elements extracted |
Diagnostic Steps:
- Manually inspect the page for the element
- Check if element is in an iframe
- Use browser DevTools to verify element exists
- Check extraction job logs for errors
Wrong Selectors Generated
Symptoms:
- Tests fail with "element not found"
- Multiple elements match selector
Causes:
- Non-unique attributes
- Generic class names
- Dynamic IDs
Solutions:
- Add
data-testidattributes to key elements - Use more specific HTML structure
- Re-run extraction after site changes
Quality Issues Tab Shows Many Problems
This is informational. Quality issues help you improve your site:
- Review each issue type
- Prioritize accessibility issues
- Fix underlying problems in your application
- Re-run extraction to verify fixes
Test Generation Issues
Low Coverage Score
Symptoms:
- Coverage below 50%
- Many elements without tests
Solutions:
- Add
data-testidattributes to important elements - Use scenario tests to cover interactive flows (modals, dropdowns, multi-step forms)
- Review uncovered elements and accept ones that aren't worth testing
Tests Failing After Generation
Symptoms:
- Newly generated tests fail immediately
Possible Causes:
- Site changed during generation
- Timing issues
- Authentication problems
Solutions:
- Verify site is stable
- Re-run element extraction
- Regenerate tests
- Check authentication settings
- Increase timeouts if timing-related
Scenario Generation Fails
Symptoms:
- "Generate Test" button errors
- Scenario shows no test code
Causes:
- Elements not found in database
- Page structure changed
- AI couldn't plan valid actions
Solutions:
- Re-run element extraction
- Simplify scenario description
- Check that referenced page has elements
- Review mapped elements for issues
Test Execution Issues
Tests Fail Intermittently
Symptoms:
- Same test passes sometimes, fails other times
Possible Causes:
| Cause | Solution |
|---|---|
| Timing/race conditions | Add appropriate waits |
| Dynamic content | Use flexible assertions |
| A/B testing on site | Use consistent test environment |
| Network latency | Increase timeouts |
| Authentication expiry | Refresh credentials |
Tests Fail with "Element Not Found"
Symptoms:
TimeoutError: locator.click: Target closed- Element locator returns null
Diagnostic Steps:
- Check if element still exists on page
- Verify selector in browser DevTools
- Check if page loaded correctly
- Verify authentication worked
Solutions:
- Re-extract elements
- Regenerate the failing test
- Check for site changes
- Verify credentials
Tests Fail with "Strict Mode Violation"
Symptoms:
- Error mentions "resolved to multiple elements"
Cause:
- Selector matches more than one element
Solutions:
- Test needs more specific selector
- Add
.first()to selector - Add unique identifiers to elements
- Regenerate test after re-extraction
Visual Regression Issues
Too Many False Positives
Symptoms:
- Tests fail but page looks correct
- Dynamic content flagged as changes
Solutions:
- Increase threshold percentage (2-5%)
- Increase wait time for animations
- Use Record & Snap for consistent states
- Review AI analysis results
Baseline Not Capturing Correctly
Symptoms:
- Screenshot is blank or partial
- Wrong page captured
Possible Causes:
| Cause | Solution |
|---|---|
| Page not loaded | Increase wait time |
| Authentication failed | Check credentials |
| JavaScript still rendering | Increase wait time |
| Network timeout | Check connectivity |
| Wrong URL | Verify page URL |
Record & Snap Not Working
Prerequisites Checklist:
- Chrome Extension installed
- Extension ID configured in QAID
- Extension enabled on target site
- Browser not blocking extension
If still not working:
- Reinstall extension
- Re-copy Extension ID
- Clear browser cache
- Try in new Chrome profile
Extension Issues
Extension Not Connecting
Symptoms:
- QAID can't communicate with extension
- Record features don't work
Diagnostic Steps:
- Verify Extension ID in settings
- Check extension is enabled in Chrome
- Open
chrome://extensionsand verify status
Solutions:
- Re-copy Extension ID exactly
- Enable extension
- Grant site permissions
- Restart Chrome
Recording Actions Not Captured
Symptoms:
- Actions performed but not in timeline
Possible Causes:
- Recording not started
- Element in iframe
- Shadow DOM element
- Permission denied
Solutions:
- Ensure "Start Recording" was clicked
- Check element is accessible
- Grant extension permissions
- Try different interaction method
Performance Issues
QAID is Slow
Possible Causes & Solutions:
| Area | Solution |
|---|---|
| Page Discovery | Reduce Max Pages/Depth |
| Element Extraction | Process fewer pages at once |
| Test Generation | Generate in batches |
| Test Execution | Run fewer tests |
| General | Check network speed |
Jobs Taking Too Long
Symptoms:
- Jobs run for many minutes
- Progress seems stuck
Solutions:
- Check job logs for errors
- Reduce scope (fewer pages)
- Verify site is responding
- Cancel and retry
- Check system resources
High AI Costs
Review usage:
- Check Admin > API Usage (Enterprise) for cost breakdown
- Identify expensive operations
- Enable Production-Safe Mode
- Reduce page count
- Run fewer concurrent test executions
Authentication Issues
Crawler Can't Access Protected Pages
Symptoms:
- Protected pages show as empty
- Login page keeps appearing
Diagnostic Steps:
- Verify credentials work manually
- Check authentication type is correct
- Look for CAPTCHA or 2FA
- Check for session expiry
Solutions:
- Update credentials
- Try Basic Auth if supported
- Check for account lockout
- Verify login page URL
Tests Fail After Login Changes
Symptoms:
- Tests that worked now fail
- Authentication errors in logs
Solutions:
- Update stored credentials
- Re-run element extraction
- Regenerate auth-dependent tests
- Check for password expiry
Getting More Help
Check Logs
- Job logs show detailed progress
- Browser console for frontend issues
- Server logs for backend errors
Retry Operations
Many issues resolve with retry:
- Cancel current operation
- Wait a moment
- Try again
Reset and Rebuild
For persistent issues:
- Delete the project and create a new one
- Start fresh with discovery
- Rebuild element database
- Regenerate tests
Community Support
- Check documentation
- Search FAQ
- Report issues with reproduction steps