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 →Use Puppeteer’s Page.screenshot() for the straightforward path: launch a browser, navigate to the page, and save the image. Choose fullPage, clip, or an element handle to control what is captured. When you need lower-level Chrome DevTools Protocol (CDP) access, create a session with page.createCDPSession() and send protocol commands through it. For most page screenshots, the higher-level Puppeteer method is simpler.
Capture a website page with Puppeteer
Install Puppeteer in a Node.js project, then run this ES module. The networkidle2 navigation condition is the choice used in Puppeteer’s screenshot guide; it is not a guarantee that every site’s client-rendered content, animations, or delayed assets have finished.
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
try {
const page = await browser.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle2' });
await page.screenshot({ path: 'screenshot.png' });
} finally {
await browser.close();
}
Save the code as an .mjs file and run it with Node.js in a project where puppeteer is installed. The example uses Puppeteer’s default browser launch behavior. Puppeteer identifies its bundled browser as the supported baseline; using an independently installed Chrome is not guaranteed to be compatible. See the launch options reference.
Wait for the content your page actually needs
Navigation completion and visual readiness are separate concerns. A page may populate content after navigation, or keep network activity open through analytics or long polling. If a specific element is the signal that the desired content is ready, wait for it before capturing:
#1 Best Overall
- 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
await page.goto('https://example.com', { waitUntil: 'domcontentloaded' });
await page.waitForSelector('main article');
await page.screenshot({ path: 'article.png' });
Choose a selector that indicates the content you need, rather than adding an arbitrary delay when a meaningful readiness signal is available. For content that appears only after scrolling, scroll it into view before capture.
Choose the capture area and output
Pick the capture scope first. The screenshot options below are documented in Puppeteer’s ScreenshotOptions reference, shown as version 25.12.0 in the consulted documentation. Defaults can change between releases.
| Need | Use | Output behavior |
|---|---|---|
| Visible page viewport | page.screenshot() |
Captures the current viewport by default. |
| Whole page | page.screenshot({ fullPage: true }) |
Requests a full-page capture; fullPage defaults to false. |
| Specific rectangle | page.screenshot({ clip: { x, y, width, height } }) |
Captures a defined region. captureBeyondViewport defaults to false without a clip and true with a clip. |
| One DOM element | element.screenshot() |
Captures the selected element, scrolling it into view if necessary. |
Capture an entire page
await page.screenshot({ path: 'full-page.png', fullPage: true });
Full-page capture is useful for long documents, but a page that loads more content in response to scrolling may need explicit scrolling or other page-specific preparation before the screenshot.
Rank #2
- 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.
Capture a region
await page.screenshot({
path: 'region.png',
clip: { x: 40, y: 80, width: 900, height: 500 }
});
The clip rectangle is expressed in page screenshot coordinates. Ensure its dimensions and position match the intended capture; use the documented captureBeyondViewport option when you need to control capture outside the viewport.
Capture a selected element
const element = await page.waitForSelector('main');
if (!element) throw new Error('Could not find main');
await element.screenshot({ path: 'main.png' });
ElementHandle.screenshot() scrolls the element into view when necessary. It throws if the element has detached from the DOM, so pages that replace elements dynamically may require waiting for the final element before taking the screenshot. See ElementHandle.screenshot().
Save a file or use the returned image data
Setting path writes the screenshot to disk. Puppeteer infers the image type from the filename extension; a relative path is resolved from the current working directory. Without path, page.screenshot() returns image data instead of saving a file: a Uint8Array with the default binary encoding, or a string when encoding: 'base64' is set.
Rank #3
- 【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.
const imageBytes = await page.screenshot({ type: 'png' });
// imageBytes is binary data by default
Select format and appearance
typeselects the output image format; PNG is the default, and documented choices include PNG and JPEG.qualityapplies to formats such as JPEG and does not apply to PNG.omitBackground: truehides the default white background to permit transparency.fromSurfacedefaults totrue;optimizeForSpeeddefaults tofalse.
For example, a JPEG file can be requested with await page.screenshot({ path: 'page.jpg', type: 'jpeg', quality: 80 });. Choose a quality appropriate to the image; the cited API reference does not establish a universally best setting.
Use Chrome DevTools Protocol through Puppeteer
Puppeteer exposes a CDP session attached to a page with page.createCDPSession(). The session’s send() method is the documented route for protocol calls, and the session can subscribe to protocol events. For ordinary captures, page.screenshot() already provides the capture workflow and options described above.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
const client = await page.createCDPSession();
// Use client.send(method, parameters) with the relevant CDP method.
// The session can also subscribe to protocol events.
This establishes how to access CDP, but it is not a complete raw screenshot-command recipe. The consulted official references do not provide a complete Page.captureScreenshot request-and-response example, so this guide does not invent its parameters. Consult the protocol documentation for the exact method and parameters required by your use case.
Rank #4
- 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)
Or skip the browser setup
If your goal is simply to get a screenshot from a URL, ScreenshotNeo offers a website screenshot API and MCP server. One GET request returns an image or PDF; its clean-shot workflow accepts cookie and consent banners like a visitor, then removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture. Each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; response headers report the page verdict and billing status.
For an API key and additional request options, see the ScreenshotNeo documentation.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo also has an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents, including Claude, Cursor, and other MCP clients. 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.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsTroubleshoot common capture problems
- The screenshot is blank or missing content: navigation may have completed before client-rendered content appeared. Wait for a meaningful selector or other page-specific readiness condition before capturing.
- The capture is cut off: default screenshots cover the viewport. Use
fullPage: truefor a full-page request, or select an appropriate clip or element capture. - The element screenshot throws: the element may not have appeared yet or may have been replaced and detached. Wait for the final selector and capture the live handle.
- The image is not written to disk: check that the screenshot options include
path. Without it, consume the returned binary data or request base64 encoding. - The file format is unexpected: inspect the filename extension and the
typeoption. Puppeteer can infer type from the extension when saving a path, and PNG is the default when type is not specified. - Installed Chrome behaves differently: use Puppeteer’s bundled browser to stay with its supported baseline; compatibility with a separately installed browser is not guaranteed.
- Another page operation waits during capture: Puppeteer documents that, within a
BrowserContext, creating a new page throughBrowserContext.newPage()orBrowser.newPage(), and callingPage.close(), wait for an in-progress screenshot.Page.bringToFront()does not wait for screenshot work.
Practical reliability and cost considerations
Puppeteer’s documented workflow runs a browser and captures a page locally or in the environment where your script executes. The references cited here do not provide performance benchmarks, reliability guarantees, or a cost comparison, so actual runtime and infrastructure costs depend on your browser environment, target pages, and workload. For repeatable captures, keep the Puppeteer version and its bundled browser aligned, select an explicit output path or data-handling approach, and wait for the content that matters to your task.
Best Value
- 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
Frequently Asked Questions
Can I use Puppeteer to save a screenshot as a base64 string?
Yes. Set encoding: 'base64' in the screenshot options; the returned value is a string rather than the default binary Uint8Array.
Does the CDP session replace Puppeteer’s page screenshot method?
No. A CDP session provides direct protocol access through send() and event subscriptions. Puppeteer’s page.screenshot() remains the documented high-level capture method.
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.

