October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Fix Timeout Errors in a Bulk URL Screenshot Script

Learn how to locate the timeout layer in a bulk screenshot run, choose Playwright wait conditions, and keep individual URL failures from stopping the batch.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find the operation that timed out before increasing any timeout: navigation, screenshot generation, or the enclosing test or job. These are separate failure points in Playwright, so changing the wrong setting may leave the error untouched. The examples below use Playwright as a concrete case; if your script uses another framework, check its corresponding timeout controls.

First, identify which operation timed out

Record the exact exception, stack trace, URL, and failing call for each failed item. A timeout in page.goto() is different from a timeout in page.screenshot(), and both can be cut short by an enclosing Playwright Test deadline.

  • Navigation: the page did not meet the requested navigation condition within the navigation timeout.
  • Screenshot: navigation may have completed, but screenshot generation did not finish within its own timeout.
  • Test or job: an outer deadline ended the work, even if the individual operation had a longer allowance.

Keep the failed URL and operation in your logs. A larger timeout gives an operation more time; it does not explain why a specific URL is slow, unreachable, or otherwise failing.

Fix a navigation timeout in Playwright

page.goto() accepts a navigation-specific timeout and a waitUntil condition. Playwright documents load as the default. Use the earliest condition that still gives your screenshot the page state it needs, then verify that the important visual content has appeared. Playwright’s navigation API reference describes the available conditions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
Condition What it waits for When to consider it
commit The navigation response is received and document loading has started. When you need to proceed early and can separately verify the page content required for the capture.
domcontentloaded The document has been parsed and the DOMContentLoaded event has fired. When DOM availability is enough to begin waiting for the specific content you need.
load The load event fires. This is the documented default. When waiting for the load event matches what the capture requires.
networkidle There are no network connections for at least 500 ms. Do not use it as a default fix: Playwright discourages it for testing, and a quiet network does not necessarily prove that application content is ready.

Playwright’s API documentation says: “’networkidle’ – DISCOURAGED consider using this method for testing, rely on web assertions to assess readiness instead.” A page-specific readiness signal is usually more useful than waiting for every network request to stop.

const response = await page.goto(url, {
  waitUntil: 'domcontentloaded',
  timeout: 30_000,
});

await page.screenshot({ path: outputPath, timeout: 30_000 });

This is an illustrative configuration, not a tested script or a guarantee that 30 seconds is appropriate for your sites. Choose values based on the actual failure and runtime.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Check screenshot and outer test timeouts separately

Screenshot generation

If navigation succeeds and the error occurs at page.screenshot(), inspect that operation’s timeout rather than changing navigation alone. The screenshot API reference documents its own timeout option.

Playwright Test deadline

Playwright Test documents a default test timeout of 30 seconds. That allowance is shared by the test function, fixture setup, and beforeEach hooks. Action and navigation timeouts are separate settings; increasing a navigation timeout does not automatically extend the enclosing test’s deadline. See Playwright Test timeouts and adjust the layer identified by the error.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Make bulk runs resilient to individual failures

Handle URLs as individual jobs so one slow or unreachable page does not erase the results for the rest of the batch. Store a result for every URL, including success or failure, the operation that failed, elapsed time, and error text. This makes it possible to distinguish recurring navigation problems from screenshot or outer-deadline failures.

  • Keep failed URLs and their error details instead of logging only a batch-level failure.
  • Decide whether a failure is transient before retrying; repeat work only when it is safe for the target site and its access rules.
  • Do not assume a universal concurrency level, retry count, or timeout. The right values depend on the script, runtime, target sites, and URL set.

Troubleshooting common timeout symptoms

Symptom Likely scope to inspect Next step
The stack trace points to page.goto(). Navigation timeout or wait condition. Set or inspect the goto() timeout; consider an earlier waitUntil condition only if the capture does not need the later event.
Navigation finishes, then capture times out. Screenshot operation. Inspect the timeout passed to page.screenshot() and the capture failure details.
The test stops despite a longer navigation timeout. Playwright Test timeout. Check whether the shared test deadline is ending the test, fixture setup, or beforeEach hook.
A URL still fails after increasing its timeout. Underlying URL, site behavior, or runtime issue. Use the recorded URL and operation to diagnose reachability or page-specific readiness; extra waiting alone does not identify the cause.
The batch stops on one bad URL. Batch error handling. Record per-URL outcomes and isolate failures so successful captures remain available.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

With ScreenshotNeo, send one GET request for a URL and receive an image or PDF. For example, using cURL:

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Cookie banners are accepted and removed before capture, along with supported newsletter popups and chat widgets. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, with response headers indicating the page verdict and billing status. Its MCP server lets AI agents use screenshot tools, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.

Sign up free for 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.