JavaScript Error Test Page
This page contains JavaScript errors to test how the screenshot service handles pages with errors.
Page Information
- Feature: JavaScript Errors
- Purpose: Testing error handling
This page intentionally contains JavaScript errors. You can trigger different types of errors using the buttons below.
Error Controls
Click the buttons below to trigger different types of JavaScript errors:
No errors triggered yet. Click one of the buttons above to trigger an error.
Error Log:
Testing Instructions
When testing the screenshot service with this page:
- Take a screenshot of the page without triggering any errors first.
- Then take a screenshot after triggering one or more errors.
- Verify that the screenshot service can handle pages with JavaScript errors.
Sample API Request:
POST /v1.0/screenshot
{
"url": "http://localhost:8000/error/js",
"format": "png"
}
Auto Error
This section will automatically trigger a JavaScript error when the page loads:
An error should have been triggered automatically when this page loaded.