What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use Playwright to open and capture the page, then use cron to start the Node.js script at the times you choose. The script should close its browser when finished so each scheduled run can exit cleanly. This guide shows the capture script, a crontab entry, practical capture choices, and ways to diagnose failures.
1. Prepare Node.js, Playwright, and a browser
Run the job on a machine or hosted runner where Node.js, your project dependencies, and Playwright’s browser runtime are available. From the project directory, install Playwright:
npm install playwright
npx playwright install chromium
The second command installs the Chromium browser that Playwright will launch. If your deployment environment requires additional operating-system libraries, follow Playwright’s installation guidance for that environment.
2. Write a screenshot script that exits cleanly
Create screenshot.js in the project directory. This example captures a full-page PNG and closes Chromium even if navigation or capture fails:
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const page = await browser.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle' });
await page.screenshot({ path: 'screenshot.png', fullPage: true });
} finally {
await browser.close();
}
})().catch((error) => {
console.error('Screenshot job failed:', error);
process.exitCode = 1;
});
The capture flow uses Playwright’s documented Page API: launch a browser, navigate, save a screenshot, and close the browser. Playwright screenshots documents the available screenshot and navigation options. The networkidle wait can be unsuitable for pages that keep network requests open; in that case, choose a more appropriate navigation wait or wait for a page-specific selector.
The output path is relative to the process’s current working directory. For cron jobs, an absolute output path can make file placement less surprising:
await page.screenshot({ path: '/home/youruser/site-shots/screenshot.png', fullPage: true });
Create the output directory ahead of time, and ensure the account running cron can write to it.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
3. Schedule the script with cron
Use crontab -e to edit the crontab for the account that should run the job. A five-field cron schedule uses minute, hour, day of month, month, and day of week. For example, this entry requests a run daily at 02:30 according to the cron host’s scheduling configuration:
30 2 * * * cd /home/youruser/site-shot-job && /usr/bin/node /home/youruser/site-shot-job/screenshot.js >> /home/youruser/site-shot-job/cron.log 2>&1
Replace the paths with the actual project directory, Node.js executable, script, and log file locations. Cron often runs with a smaller environment than an interactive shell, so avoid relying on an implicit working directory or PATH. Find the executable path with command -v node in the same environment, and use the resulting absolute path. Check the host’s timezone and cron implementation before relying on a particular local run time. The cron manual describes crontab as time-based job scheduling: crontab(5).
Node.js timers are different: they run callbacks while the Node process remains alive. Cron starts the script when needed, so a one-shot screenshot job does not need a continuously running Node timer process. The Node.js timers documentation surfaced for v26.10.0: Node.js timers.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
4. Choose the screenshot shape and file format
Viewport or full page
By default, a screenshot represents the visible viewport. Set fullPage: true when the record should include the entire scrollable document. Use a viewport capture when you need a specific screen state rather than a tall image of the whole page.
Image scale and output size
Playwright supports screenshot scale choices. CSS-pixel scale can keep high-density captures smaller; device-pixel scale captures at device density and can produce larger files. Select the scale based on whether the image is for visual comparison, display, or archiving.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →PNG, JPEG, and WebP
PNG is a straightforward lossless default for archiving or pixel comparisons. JPEG and WebP can reduce file size, but lossy encoding may alter pixels and make exact visual diffs noisier. Playwright’s screenshot options cover path, type, quality, clipping, and full-page capture in its screenshot documentation.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
5. Keep scheduled captures useful and repeatable
Make the environment stable for comparisons
A scheduled screenshot is not guaranteed to be pixel-identical between runs. Rendering may differ with the host operating system, browser version, hardware, power source, and headless mode. For visual baselines, create and check screenshots in the same environment; Playwright discusses these sources of variability in its visual comparisons guidance.
If the page contains animations, rotating content, timestamps, or other dynamic regions, decide whether to capture that changing state or control it for comparison. Review image diffs in context rather than treating every changed pixel as a product defect.
Log enough to investigate missed or bad captures
The example writes errors to standard error, and the cron line appends standard output and errors to a log. For an important monitoring job, also record a timestamp for each successful capture and preserve the resulting image for an appropriate period. Cron and Playwright provide the scheduling and capture mechanisms; retention and monitoring rules depend on your needs.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Consider repeated captures for visual checks
Playwright Test’s screenshot assertion can take captures until two consecutive screenshots match, then compare the last capture with the expected image. That behavior is useful for reducing false diffs from transient rendering, but it is part of Playwright Test’s visual assertion workflow rather than a replacement for a schedule. See Playwright visual comparisons.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.6. Troubleshoot common cron screenshot failures
- The job works in a terminal but not under cron: cron may use another working directory or a limited PATH. Use absolute paths for Node.js, the script, and output files, and explicitly
cdto the project before running it. - Chromium will not launch: confirm the browser runtime was installed for the deployed environment and that the cron account can access it. Install any environment-specific system dependencies required by Playwright.
- No screenshot appears: check the log for navigation or filesystem errors, verify the output directory exists, and confirm the cron user has write permission.
- The page is blank or incomplete: the page may not have finished rendering when capture began, or a page-specific element may need to appear first. Use an appropriate navigation wait or wait for a selector that indicates the content is ready.
- The job seems to hang: inspect navigation waits and page behavior. A page with ongoing network traffic may never reach a network-idle condition; use a suitable wait strategy and consider setting explicit timeouts.
- Images differ between runs: compare captures made with the same operating system, browser version, hardware class, and headless configuration, and account for dynamic page content.
7. Decide where the scheduler should run
A self-managed host gives you direct control over the runtime and browser environment, but you maintain those dependencies and decide where screenshots and logs live. A hosted scheduled workflow avoids operating a continuously available host, but its schedule behavior, availability, and limits vary by platform. Check the platform’s current documentation before deploying; GitHub’s workflow syntax reference is here.
For either approach, decide who maintains browser dependencies, how files are stored and retained, which timezone governs the schedule, whether the target requires private or authenticated access, and whether the environment can remain consistent enough for image comparisons.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. One GET request can return an image or PDF; for example, this cURL call saves a WebP capture of the target URL. See the ScreenshotNeo API documentation for request options.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchescurl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
ScreenshotNeo accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for 1,000 free screenshots a month with no card.
Frequently Asked Questions
Can I use Node.js timers instead of cron?
Yes, if you keep a Node.js process running continuously; cron is suited to starting a short-lived job only when a capture is due.
Does a full-page screenshot include content loaded only after scrolling?
A full-page option captures the scrollable page, but pages that load content dynamically may need additional waits or page-specific handling before capture.
Quick Recap
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.
Free tools Windows power users keep installed
One-click scans. No signup required.

