Web Scraper Test Website

Timeout Error Test Page

This page simulates a long-loading resource to test how the screenshot service handles timeouts.

Page Information

This page will attempt to load a resource that takes a long time to complete. You can adjust the timeout duration using the controls below.

Timeout Controls

10 seconds
Time remaining: 0 seconds
Waiting to start...

Resource Loading Simulation

The section below will attempt to load a simulated resource:

Resource will appear here after loading completes...

Testing Instructions

When testing the screenshot service with this page:

  1. Set a timeout duration using the slider (e.g., 10 seconds).
  2. Start the timeout simulation by clicking the button.
  3. Take a screenshot with a timeout parameter less than the simulation duration to test timeout handling.
  4. Take another screenshot with a timeout parameter greater than the simulation duration to verify successful capture after loading.

Sample API Requests:

POST /v1.0/screenshot
{
  "url": "http://localhost:8000/error/timeout?auto=true&duration=15",
  "timeout": 5000,
  "format": "png"
}
POST /v1.0/screenshot
{
  "url": "http://localhost:8000/error/timeout?auto=true&duration=15",
  "timeout": 20000,
  "format": "png"
}