Free tools Windows power users keep installed

One-click scans. No signup required.

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

With Playwright, navigate to the page, wait 10,000 milliseconds, take the screenshot, and close the browser. The sequence is simple; the important distinction is whether you truly need a fixed ten-second delay or whether you need to wait for a particular page condition. A fixed delay is literal, but it can make automated tests flaky when pages load at different speeds.

Capture a page after a fixed ten-second delay with Playwright

Playwright’s timeout API uses milliseconds, so ten seconds is 10000. This complete JavaScript example opens a page, waits for the navigation’s load event, pauses for ten seconds, saves a full-page PNG, and then closes the browser.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  try {
    const page = await browser.newPage();
    await page.goto('https://example.com', { waitUntil: 'load' });
    await page.waitForTimeout(10000);
    await page.screenshot({ path: 'screenshot.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();
  1. Replace https://example.com with the page you want to capture.
  2. Run the script in an environment with Playwright and its browser available.
  3. After navigation reaches the selected load condition, Playwright waits another 10 seconds.
  4. The screenshot is written as screenshot.png in the script’s working directory. fullPage: true captures the full page rather than only the visible viewport.
  5. The finally block closes the browser even if navigation or capture throws an error.

The order matters: navigate, wait, capture, close. Because the delay begins after page.goto resolves, this example waits ten seconds after the page reaches the chosen navigation condition; it does not measure ten seconds from the instant navigation starts.

Decide whether you need a fixed delay or a readiness condition

Use the ten-second sleep when elapsed time is the requirement

page.waitForTimeout(10000) means exactly “pause this script for ten seconds.” It is appropriate when the requirement explicitly says to capture after that interval—for example, when observing a page at a defined point in time. It does not prove that a particular image, widget, or other piece of content has appeared.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Acer Predator Helios Neo 18 AI Gaming Laptop | Intel Core Ultra 9 Processor 275HX | NVIDIA GeForce RTX 5070 Ti | 18" WQXGA 240Hz G-SYNC | 32GB DDR5 | 2TB Gen 4 SSD | Killer Wi-Fi 6E | PHN18-72-9474
  • Desktop-Level Performance, Anywhere: Get legendary gaming performance with the Intel Core Ultra 9 275HX processor, delivering ultra-smooth gameplay and future-ready AI (Up to 13 NPU TOPS). Offload tasks like background removal and audio optimization to the NPU for seamless streaming and gaming, while Intel Application Optimization enhances performance on classic titles.
  • Game-Changing Realism: Powered by NVIDIA Blackwell architecture, GeForce RTX 5070 Ti Laptop GPU unlocks the game changing realism of full ray tracing. Equipped with a massive level of 992 AI TOPS horsepower, the RTX 50 Series enables new experiences and next-level graphics fidelity. Experience cinematic quality visuals at unprecedented speed with fourth-gen RT Cores and breakthrough neural rendering technologies accelerated with fifth-gen Tensor Cores.
  • Supreme Speed. Superior Visuals. Powered by AI: DLSS is a revolutionary suite of neural rendering technologies that uses AI to boost FPS, reduce latency, and improve image quality. DLSS 4 brings a new Multi Frame Generation and enhanced Ray Reconstruction and Super Resolution, powered by GeForce RTX 50 Series GPUs and fifth-generation Tensor Cores.
  • The Ultimate in Ray Tracing and AI: NVIDIA RTX is the most advanced platform for full ray tracing and neural rendering technologies that are revolutionizing the ways we play and create. Over 700 games and applications use RTX to deliver realistic graphics and incredibly fast performance with cutting-edge AI features like DLSS Multi Frame Generation.
  • Immersive Depth and Detail: At 18 inches with a 16:10 aspect ratio, the pristine WQXGA screen offering vibrant colors with up to 100% DCI-P3 operates at a fast 240Hz refresh and 3ms overdrive response time. Alongside the suite of features from NVIDIA G-SYNC and NVIDIA Advanced Optimus, you're guaranteed that whatever's on-screen is a distinct viewing delight.

Prefer a condition when you need specific content

For production automation and tests, a fixed sleep can be flaky: a fast page wastes time, while a slow page may still be changing when the timer ends. Playwright advises against waiting for a timeout in production tests and recommends waiting for a meaningful signal instead. Selenium’s documentation describes the related race: navigation can reach a chosen ready state while JavaScript continues to change the page. When the real requirement is “capture once this content is ready,” wait for that content rather than treating ten seconds as proof of readiness.

Playwright’s page.goto supports the navigation conditions load, domcontentloaded, networkidle, and commit. Choose the condition that matches what the capture needs; these are navigation milestones, not guarantees that every dynamic part of a page has finished changing. Playwright also discourages relying on networkidle for tests. If the requirement is a specific element, use an explicit selector-based wait for that element before taking the screenshot.

Choose the screenshot area and image format

Full page or viewport

Use page.screenshot() for a page capture. Setting fullPage: true requests the entire page; omit it when you want the visible viewport. A full-page capture can be much taller than a screen, so use it only when the extra page content is useful to the task.

One element instead of the whole page

If the target is one chart, card, or other component, capture its locator rather than the whole page. Playwright’s locator screenshot scrolls the target into view and waits for actionability before capture. That is useful when the element itself is the deliverable; it is not a substitute for a fixed ten-second wait if elapsed time is part of the requirement. If both matter, perform the required wait and then capture the locator.

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

PNG, JPEG, or WebP

Playwright screenshot output supports PNG, JPEG, and WebP. The example uses PNG through the .png output path. Choose an image type that suits the next step in your workflow, and make the output filename and format agree. If the exact capture API options vary by Playwright version, check the official Playwright documentation for the version installed in your project.

How Playwright, Selenium, and Puppeteer differ for this task

All three can automate a browser, but the exact waiting and screenshot calls depend on the library and runtime. The comparison below focuses on the documented distinctions relevant to a delayed capture.

Rank #3
Sale
msi Katana 15 HX 15.6” 165Hz QHD+ Gaming Laptop: Intel Core i9-14900HX, NVIDIA Geforce RTX 5070, 32GB DDR5, 1TB NVMe SSD, RGB Keyboard, Win 11 Home: Black B14WGK-016US
  • Intel Core i9 HX Power for Elite Gaming: Dominate demanding titles with the Intel Core i9-14900HX and its 24-core hybrid architecture, delivering fast load times, high FPS, and smooth multitasking.
  • GeForce RTX 5070 With Ray Tracing & DLSS 4: Powered by NVIDIA Blackwell, the RTX 5070 delivers stronger ray tracing, higher FPS, faster AI upscaling, and more responsive gameplay—ideal for competitive and cinematic gaming.
  • QHD 165Hz, 100% DCI-P3 for Ultra-Clear Combat: The QHD 165Hz display reveals more detail, reduces motion blur, and boosts visibility in fast-paced games while delivering richer, more accurate colors.
  • Cooler Boost 5 for Sustained Performance: Dual fans and a 5-heat-pipe share-pipe design keep the CPU and GPU cool, maintaining stable frame rates during long gaming marathons.
  • 4-Zone RGB Keyboard + Full Game-Ready Ports: Customize your setup with a 4-zone RGB keyboard and highlighted WASD keys. Includes USB-C Gen 2, HDMI up to 8K, multiple USB-A ports, RJ45, Wi-Fi 6E & Hi-Res Audio.
Tool Runtime or language in the available guidance Waiting approach Screenshot scope and output Best fit
Playwright JavaScript example shown here Navigation readiness options plus a millisecond timeout; condition-based waits are preferable when time itself is not the requirement. Page screenshots; locator screenshots for one element. PNG, JPEG, and WebP are supported. A scripted capture or repeatable browser test where you want page or element targeting.
Selenium Not stated in the available source material. Its documentation warns that a navigation ready state may be reached while JavaScript continues changing the page; use an explicit condition for the needed content. Not stated in the available source material. Projects already using Selenium that need a content-specific wait rather than assuming navigation means the page is settled.
Puppeteer JavaScript API documented in the available source material. For a literal delay, use a 10,000-millisecond JavaScript delay after navigation. page.screenshot(options) can return image bytes or a base64 string when requested. JavaScript browser automation projects already built around Puppeteer.

For a one-off manual screenshot, a browser’s own screenshot feature may be enough. For recurring captures or a test, automation makes the sequence repeatable. Use the tool already supported by your project unless its runtime or screenshot scope does not meet the need.

Or skip the browser setup

If you do not want to install and manage browser automation for a screenshot, ScreenshotNeo accepts one GET request with a URL and returns an image or PDF. Its capture options include full-page screenshots with lazy images loaded, CSS-selector element capture, custom CSS and JavaScript, viewport and device choices, and delay or selector waits. See ScreenshotNeo and its API documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

Cookie banners and consent notices, newsletter popups, and chat widgets can be removed before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the page verdict and billing status in headers. An MCP server provides screenshot tools for AI agents, including Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for free and try ScreenshotNeo.

Troubleshoot a missing or unexpected screenshot

The screenshot is taken before the page looks ready

A ten-second pause only establishes that ten seconds elapsed after navigation returned; it does not establish that dynamic content finished rendering. If a particular element is missing, replace the fixed sleep with a wait for that element, or add the content-specific condition before capture. If elapsed time is itself the requirement, retain the delay and treat the result as a snapshot at that time, not a readiness guarantee.

Rank #4
Sale
15.6" Laptop with Win 11, N4020 CPU, 4GB RAM, 128GB, FHD 1080P Display
  • Vibrant 15.6" FHD IPS Display: Experience stunning visuals on a large 15.6-inch Full HD (1920x1080) IPS screen. With narrow bezels and wide viewing angles, this laptop offers an immersive experience for streaming movies, online classes, or working on documents with crystal-clear detail
  • Efficient Daily Performance: Powered by the Intel Celeron N4020 processor and 4GB LPDDR4 RAM, this notebook delivers reliable performance for web browsing, light multitasking, and school projects. The 128GB storage provides ample space for your essential files, photos, and apps
  • Modern Connectivity & PD Fast Charge: Equipped with a versatile Type-C PD 45W port for fast charging and high-speed data transfer. Combined with Dual-Band AC WiFi and Bluetooth, you’ll enjoy a stable and fast internet connection for seamless video calls and cloud-based work
  • Silent & Ultra-Portable Design: Featuring an advanced fanless cooling system, this laptop operates in total silence—perfect for libraries or late-night study sessions. Its sleek, lightweight body fits easily into backpacks, making it the ideal companion for students and commuters
  • Ready for Work & Play: Pre-installed with Windows 11 Home, offering a secure and user-friendly interface. Includes a HD webcam and high-quality speakers for clear communication. A practical choice for online learning, remote work, or everyday entertainment

The script waits too long or still captures a changing page

Check the selected waitUntil value. A navigation event such as load and a later JavaScript update are separate events. A fixed sleep adds the same delay regardless of whether the page was ready earlier; a condition-based wait better matches a task whose completion depends on content.

The output is only the visible screen

Confirm that the call is a page screenshot and that fullPage: true is present when you need the full page. For one component, use a locator screenshot instead. Those choices change what is captured; they do not change the ten-second timing rule.

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.

The file type does not match the requested output

Check the screenshot options and the output filename. Playwright supports PNG, JPEG, and WebP; use the format required by the next application and keep the file extension consistent with it.

Best Value
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.

The browser stays open after an error

Put browser cleanup in a finally block, as in the example. That way, an error during navigation or screenshot capture does not skip the close call.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Make delayed captures more reliable and economical

  • Use a fixed pause only for a fixed-time requirement. Otherwise, wait for the content the screenshot is meant to show.
  • Keep the capture scope narrow. A locator screenshot avoids capturing unrelated page areas when only one element matters.
  • Choose full-page capture deliberately. It is useful for a complete page record, while a viewport screenshot is more appropriate for what a visitor sees on screen.
  • Close the browser reliably. Cleanup in finally helps avoid leaving an automation browser open after failures.
  • Do not assume a successful navigation means a stable page. Modern pages may continue changing after the selected ready state, so match the wait to the content and purpose of the capture.

Frequently Asked Questions

Does the ten-second wait start when the script begins?

No. In the example it starts after page.goto resolves at the selected navigation condition.

Can I take a screenshot of just one element?

Yes. Playwright supports locator screenshots; use one when the element, rather than the whole page, is the intended capture.

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

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.