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.

Use a scheduled CI workflow to launch a Playwright script: authenticate with a test account, confirm the protected page has loaded, save the screenshot, then upload it as an artifact or send it to storage you control. Keep the saved authentication state secret; it can grant access to the account.

Choose where the scheduled capture will run

A CI scheduler is a practical option for recurring, unattended captures. Playwright’s CI guide documents the general run sequence and a GitHub Actions workflow example: install project dependencies, install the browser binaries and operating-system dependencies, then run the capture script or test. See Playwright’s CI documentation.

Hosted CI is usually simpler to maintain than an always-on machine, while a self-hosted runner may make sense if you need control over the environment or already operate one. Compare maintenance, secret handling, scheduling and timezone behavior, run limits, and artifact access and retention. Schedule syntax, timezones, quotas, and retention depend on the provider; check its current documentation rather than assuming Playwright sets them.

Set up authentication safely

For an application with a stable test login, authenticate once and save Playwright’s browser storage state for the capture run. Playwright’s authentication guide describes setup projects and state reuse: Authentication in Playwright.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
  • Use a dedicated read-only test account where possible. If runs can mutate shared server-side state or execute concurrently, use separate accounts per worker rather than sharing one account.
  • Keep the state file in a git-ignored directory. It can contain cookies and headers that are enough to impersonate the account; never commit it or print it in logs.
  • Store passwords, tokens, and any state needed by CI in the provider’s secret facility. Restrict job and artifact access, and plan to reauthenticate when the session expires.

When the application offers a supported authentication API, Playwright can make the request and save the resulting state instead of automating the login UI. Saved state can cover cookies, local storage, IndexedDB, and passkey-based authentication. Session storage is not persisted through the same API and requires a separate save-and-restore approach described in the authentication guide.

Build a scheduled capture script

Install Playwright in the project and install its browser binaries for the browser you use. The example below assumes a Node.js project, a supported test login page, and credentials injected as environment variables by your CI provider. Replace the URLs, selectors, and environment-variable names with your app’s actual values.

import { chromium } from 'playwright';
import { mkdir } from 'node:fs/promises';

const loginUrl = process.env.APP_LOGIN_URL;
const pageUrl = process.env.APP_PAGE_URL;
const username = process.env.APP_USERNAME;
const password = process.env.APP_PASSWORD;

if (!loginUrl || !pageUrl || !username || !password) {
  throw new Error('Set APP_LOGIN_URL, APP_PAGE_URL, APP_USERNAME, and APP_PASSWORD');
}

const browser = await chromium.launch();
try {
  const context = await browser.newContext();
  const page = await context.newPage();

  await page.goto(loginUrl, { waitUntil: 'domcontentloaded' });
  await page.getByLabel('Email').fill(username);
  await page.getByLabel('Password').fill(password);
  await page.getByRole('button', { name: 'Sign in' }).click();

  // Prefer an app-specific success signal over assuming the click logged in.
  await page.waitForURL('**/dashboard');
  await page.goto(pageUrl, { waitUntil: 'domcontentloaded' });
  await page.getByRole('heading', { name: 'Account overview' }).waitFor();

  await mkdir('artifacts', { recursive: true });
  await page.screenshot({ path: 'artifacts/page.png' });
  await context.storageState({ path: 'playwright/.auth/state.json' });
} finally {
  await browser.close();
}

The labels, button name, final URL pattern, and heading are examples, not universal selectors. Use signals that identify a successful session and the specific page state you intend to record. Playwright’s authentication example uses a final URL or authenticated UI state as confirmation rather than treating a click as proof that login succeeded.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

This script authenticates on every run, then saves storage state. If you prefer to reuse state, put the state file in a protected, git-ignored location and load it with browser.newContext({ storageState: 'playwright/.auth/state.json' }) on later runs. Do not rely on saved state indefinitely: expired sessions need a fresh login.

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

Viewport or full-page image

page.screenshot({ path: 'artifacts/page.png' }) saves the current viewport. To capture the full scrollable page, use page.screenshot({ path: 'artifacts/page.png', fullPage: true }). Full-page images can be much taller and are not a single-viewport representation. The Page API also supports PNG, JPEG, and WebP output, masking, scale, and animation control; see the Page screenshot API.

Run as a script or a test

A standalone script is enough for one scheduled image. Use Playwright Test if you want its fixtures, setup projects, reports, retries, or screenshot assertions. Its toHaveScreenshot() assertion is for comparing against a baseline, which is a different goal from keeping a dated record of a page’s appearance. See Visual comparisons.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Schedule the job and retain the image

Configure your CI provider to run the script or test on its schedule. The Playwright CI guide shows a workflow pattern and artifact upload for test output; adapt the upload path to artifacts/. Verify the provider’s current schedule syntax, timezone interpretation, branch rules, and artifact controls. Those are provider-specific, not Playwright settings.

  1. Install project dependencies in the job.
  2. Install Playwright browser binaries and required operating-system dependencies.
  3. Provide the login secrets through the CI secret store.
  4. Run the capture command with a single worker for stability unless your environment justifies parallelism.
  5. Upload the screenshot directory as a CI artifact, or copy it to a controlled storage service if it must outlive the artifact retention window.

Playwright recommends one worker in CI when prioritizing stability and reproducibility. On a capable self-hosted system, parallel workers or sharding may suit larger workloads. Decide whether artifacts are for short-term inspection or durable records, then explicitly configure their retention and access controls with the provider.

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

Make repeat captures useful

  • Choose viewport or full-page capture based on what the image is meant to show.
  • Use an explicit image format and path. PNG is a broadly usable lossless choice; JPEG or WebP may suit different storage or delivery needs.
  • Consider CSS-pixel scale for more consistent dimensions across high-density displays.
  • Wait for an application-specific element or state, not just an arbitrary delay, when the page has meaningful readiness signals.
  • Mask or disable dynamic content and animations when repeat captures need to be comparable.
  • Keep scheduled observation artifacts distinct from visual-regression baselines; update a baseline only when the reference appearance is intentionally changing.

Common failures and fixes

The capture shows a login page

The login may have failed, the session may have expired, or the script may have navigated before authentication completed. Wait for a final URL or authenticated element, confirm that the session can access the target page, and refresh expired state. Do not treat a successful button click as proof of login.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

The script times out waiting for a selector

The selector may not match the current UI, the page may still be loading, or authentication may have redirected elsewhere. Confirm the actual page and accessible label or role, then wait for a stable app-specific readiness signal.

The job cannot find the browser

The CI job may have installed the Node package without installing its browser binaries or operating-system dependencies. Follow Playwright’s CI setup sequence for the installed version and selected browser.

The screenshot file is missing after the job

A CI workspace output is not necessarily permanent. Ensure the script creates the directory, upload that directory as an artifact, and check the provider’s artifact path and retention settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

Runs are inconsistent or interfere with each other

Animations, live data, or concurrent runs against a shared account can change the result. Disable or mask volatile visual elements, avoid unsafe shared-state mutations, and use separate accounts when concurrent workers need them.

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

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its API can return an image or PDF with one GET request; this example saves a WebP response. See the ScreenshotNeo documentation for parameters and setup.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

For a protected app, supply the authentication options supported by the API as documented, and do not put credentials in a public URL or logs. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

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

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

Frequently Asked Questions

Can Playwright reuse a login between scheduled runs?

Yes. Save and load browser storage state, but treat the file as a credential and refresh it when its session expires.

Should I use Playwright Test for a scheduled screenshot?

A standalone script suits a single capture; Playwright Test is useful when you also need test fixtures, setup projects, reports, retries, or screenshot comparisons.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.82
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.04
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

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.