This page demonstrates heavy JavaScript usage to test how the screenshot service handles JavaScript-intensive pages.
This page contains various JavaScript demonstrations that test the screenshot service's ability to render JavaScript-generated content.
This content will change styling based on the selected theme.
Here's an example of the JavaScript code used on this page:
When testing the screenshot service with this page:
POST /v1.0/screenshot
{
"url": "http://localhost:8000/javascript",
"delay_time": 500,
"format": "png"
}
POST /v1.0/screenshot
{
"url": "http://localhost:8000/javascript",
"delay_time": 5000,
"format": "png"
}
POST /v1.0/screenshot
{
"url": "http://localhost:8000/javascript",
"javascript_code": "document.getElementById('add-elements').click(); document.getElementById('apply-theme-dark').click();",
"delay_time": 1000,
"format": "png"
}