Use a browser screenshot when you need the pixels a visitor sees; use a browser download when you need the site’s original image file. Playwright supports page, full-page, and element screenshots plus download-event handling, while Selenium can save screenshots as PNG, bytes, or Base64. The right workflow depends on whether appearance or source data matters.
Choose between a screenshot and the original file
A screenshot rasterizes the rendered page. It includes layout, CSS effects, canvas output, text, and whatever content is visible after scripts run. This is the correct method for a hero image as displayed, a chart rendered in a canvas, a complete webpage, or one specific visual region.
A download preserves the payload delivered by the website. Use it when you need the original JPEG, PNG, WebP, SVG, or an export generated by a button. A downloaded file may have a different resolution, crop, color profile, or transparency than a screenshot.
- Need visual appearance: capture the page or an element.
- Need original image bytes: trigger and save the download.
- Need both: keep separate directories and filenames so later processing can distinguish rendered pixels from source files.
Automation does not grant permission to reuse an image. Check the site’s terms, licensing, access controls, and copyright law in your jurisdiction before copying or redistributing anything.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
- Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
- Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
- Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
- Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)
Save a webpage image with Playwright
Install Playwright and its browser once in your project, then run a script with a stable destination directory. The examples below use JavaScript and Chromium.
npm install playwright
npx playwright install chromium
Capture a visible page
page.screenshot() infers the format from the filename extension. PNG is lossless; JPEG and WebP can be smaller. The following script waits for navigation to finish and writes a complete page image.
import { chromium } from 'playwright';
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
await page.goto('https://example.com', { waitUntil: 'domcontentloaded' });
await page.screenshot({ path: 'output/page.png', fullPage: true });
await browser.close();
Create output before running in environments that do not create directories automatically:
mkdir -p output
node capture-page.js
Capture one image or element
Element screenshots avoid surrounding navigation and are preferable when you need one product photo, logo, chart, or card. Wait for the locator, then capture it directly.
import { chromium } from 'playwright';
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com/gallery', { waitUntil: 'domcontentloaded' });
const photo = page.locator('img.photo');
await photo.waitFor({ state: 'visible' });
await photo.screenshot({ path: 'output/photo.webp', type: 'webp' });
await browser.close();
If the page has several matching images, make the selector specific (for example, img[data-id="42"]) or choose an indexed match with .nth(0). A locator screenshot captures the element’s rendered box, including CSS transformations and overlays inside that box.
Full-page, clipped, and quality-controlled captures
Use fullPage: true for the complete scrollable document. For a fixed region, pass a clip rectangle. JPEG quality is an integer from 0 through 100; it is ignored for PNG.
Rank #2
- The next-generation optical HERO sensor delivers incredible performance and up to 10x the power efficiency over previous generations, with 400 IPS precision and up to 12,000 DPI sensitivity
- Ultra-fast LIGHTSPEED wireless technology gives you a lag-free gaming experience, delivering incredible responsiveness and reliability with 1 ms report rate for competition-level performance
- G305 wireless mouse boasts an incredible 250 hours of continuous gameplay on just 1 AA battery; switch to Endurance mode via Logitech G HUB software and extend battery life up to 9 months
- Wireless does not have to mean heavy, G305 lightweight mouse provides high maneuverability coming in at only 3.4 oz thanks to efficient lightweight mechanical design and ultra-efficient battery usage
- The durable, compact design with built-in nano receiver storage makes G305 not just a great portable desktop mouse, but also a great laptop travel companion, use with a gaming laptop and play anywhere
await page.screenshot({
path: 'output/region.jpg',
type: 'jpeg',
quality: 85,
clip: { x: 120, y: 240, width: 900, height: 600 },
scale: 'css'
});
Use scale: 'css' for output dimensions that match CSS pixels, or the default device scale when you need a retina-sized image. For a transparent result, set the page background to transparent where the browser and page styling allow it.
Lazy-loaded images and dynamic pages
Lazy images may not exist until they approach the viewport. Scroll through the page before taking a full-page shot, then wait for images to complete:
await page.goto('https://example.com/catalog', { waitUntil: 'domcontentloaded' });
await page.evaluate(async () => {
window.scrollTo(0, document.body.scrollHeight);
await new Promise(resolve => setTimeout(resolve, 500));
window.scrollTo(0, 0);
});
await page.locator('img').first().waitFor({ state: 'visible' });
await page.screenshot({ path: 'output/catalog.png', fullPage: true });
For a known image, wait for its network load rather than relying only on visibility:
await page.locator('img.photo').evaluate((img) => {
if (img.complete) return;
return new Promise((resolve, reject) => {
img.addEventListener('load', resolve, { once: true });
img.addEventListener('error', reject, { once: true });
});
});
Save the original image from a browser download
A screenshot is not a substitute for an export or download. Start waiting for the download before clicking the control; otherwise a fast download can be missed. Persist it before the browser context closes because temporary download files are removed with the context.
import { chromium } from 'playwright';
import { mkdir } from 'node:fs/promises';
await mkdir('images', { recursive: true });
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com/gallery', { waitUntil: 'domcontentloaded' });
const downloadPromise = page.waitForEvent('download');
await page.getByText('Download image').click();
const download = await downloadPromise;
await download.saveAs('images/' + download.suggestedFilename());
await browser.close();
The same pattern works for an <a download> link, an export menu, or a button whose click initiates a file response. If the site opens the image in a new tab instead of emitting a download event, capture that tab’s URL or use a direct request only when the site’s access rules permit it.
Handle download failures explicitly
Check the download’s failure state after awaiting it. A consent page, authentication redirect, blocked request, or server error can prevent a usable file.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Rank #3
- Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
- Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
- Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
- Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
- Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)
const failure = await download.failure();
if (failure) {
throw new Error(`Download failed: ${failure}`);
}
Selenium alternative in Python
Selenium WebDriver is useful when your project already uses Python or a Selenium grid. Its screenshot methods produce PNG files, raw bytes, or Base64.
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
Path('output').mkdir(parents=True, exist_ok=True)
options = webdriver.ChromeOptions()
options.add_argument('--headless=new')
driver = webdriver.Chrome(options=options)
try:
driver.get('https://example.com')
WebDriverWait(driver, 30).until(
EC.presence_of_element_located((By.TAG_NAME, 'body'))
)
driver.save_screenshot('output/page.png')
png_bytes = driver.get_screenshot_as_png()
Path('output/page-copy.png').write_bytes(png_bytes)
base64_text = driver.get_screenshot_as_base64()
Path('output/page.base64.txt').write_text(base64_text)
finally:
driver.quit()
save_screenshot() and get_screenshot_as_file() write PNG files. The byte and Base64 methods are useful when an API, database, or message queue—not a local file—is the next destination. Selenium’s standard screenshot operation is a viewport capture; full-page behavior depends on the driver and browser, so a page-specific scroll-and-stitch workflow may be required.
Make captures reliable
Wait for the state you actually need
- Navigate before locating an image or download control.
- Wait for a selector to be visible, not merely present, when it must appear in the screenshot.
- Wait for a download event before clicking.
- For client-rendered pages, wait for a meaningful application selector or network completion rather than an arbitrary short sleep.
- Scroll or otherwise trigger lazy loading before a full-page capture.
Control the browser context
Set the viewport, device scale, locale, timezone, cookies, and authentication state deliberately so repeated runs produce comparable results. A logged-out context may see a login wall; a fresh context may see consent or newsletter dialogs that obscure the image. Store credentials and cookies securely, and do not bypass access controls.
Use deterministic files and cleanup
Generate names from a URL slug, record the capture time and format in metadata, and keep screenshots separate from original downloads. Close pages, contexts, and browsers in a finally path. For batches, reuse one browser and create isolated contexts rather than launching a new browser process for every URL.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Common errors and fixes
“Element is not visible” or an empty screenshot
The selector may match a hidden template, the page may still be rendering, or a consent layer may cover it. Inspect the locator count, wait for visibility, select the visible instance, and handle the site’s consent flow before capture.
The screenshot misses images
Images may be lazy-loaded or still downloading. Scroll to trigger them, wait for the image’s load event, and increase the navigation or application wait condition. A full-page screenshot does not guarantee that every deferred resource has loaded.
Rank #4
- Computer mouse for easily navigating a computer interface; click, scroll, and more
- USB-A wired connection; if existing device only supports USB-C, an additional adapter will be required
- High-definition (1000 dpi) optical tracking ensures responsive cursor control for precise tracking and easy text selection
- 3 buttons offer effortless fingertip control
- Plug-and-go ready for instant use
No download event arrives
The click may open a new tab, navigate to an image URL, or be blocked by authentication. Confirm the control’s behavior, listen for a popup when appropriate, and verify that the account has permission. Do not replace an export with a screenshot if the original file is required.
“Target page, context or browser has been closed”
The browser or context was closed before the asynchronous screenshot or download finished. Await every operation and call saveAs() before closing the context.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Captcha, bot check, or blank page
Automation may be challenged or served an incomplete response. Respect the site’s rules, use an authorized session, slow request rates, and record the failure instead of treating a blank image as success.
Files are too large or dimensions are unexpected
Choose WebP or JPEG when lossless PNG is unnecessary, set an explicit viewport and scale, and use element or clipped captures instead of full pages. Preserve PNG for transparency or pixel-accurate work.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Performance, repeatability, and cost decisions
Launching a browser is expensive compared with reusing one. Reuse a browser process for a batch, limit concurrency to what the target and your machine can handle, and avoid downloading resources you do not need only when doing so will not change the rendered result. Cache your own completed outputs with a content-based filename so retries do not recapture unchanged pages.
Full-page captures consume more memory and produce larger files than an element shot. Use a narrow selector for a single image, a clip for a known region, and full-page mode only when the entire document is the deliverable. Keep separate success and failure records: an output file alone does not prove that the intended page loaded.
Best Value
- 【Plug and Play for Home/Office/School】The wireless computer mouse features 2.4GHz connectivity, delivering a stable, interference-free connection up to 32ft. Designed for 𝐦𝐞𝐝𝐢𝐮𝐦 𝐭𝐨 𝐥𝐚𝐫𝐠𝐞 𝐬𝐢𝐳𝐞𝐝 𝐡𝐚𝐧𝐝𝐬, it ensures comfortable use all day. Simply plug in the USB-A receiver for instant pairing—no drivers needed. 📌📌 If the mouse isn’t suitable, place the USB receiver in the battery compartment and return both.
- 【3 Levels Adjustable DPI】This travel USB mouse offers 3 adjustable DPI settings (800, 1200, 1600), allowing you to customize sensitivity for precise design work. Effortlessly switch to match your task and elevate your productivity. 📌 Please remove the film at the bottom of the mouse before use.
- 【Effortless Browsing】Equipped with forward and backward buttons, this computer mice streamlines your workflow, making it easy to navigate through web pages and files with a simple click. 📌Side button does not work on Mac.
- 【Visible Indicator Light】 The pc mouse features a visual indicator for DPI levels and low battery alerts. The red light flashes once for 800 DPI, twice for 1200 DPI, and three times for 1600 DPI. When the battery level is below 10%, the light flashes red until the mouse is completely out of power.
- 【Click to Wake】With smart sleep mode, it saves power by standby after 10 inactive minutes, just 2-3 clicks to wake. This efficient design delivers 3x longer battery life than motion-wake mice. Engineered for durability, its buttons and scroll wheel are tested for 10 million clicks, ensuring long-term reliability and consistent performance.
Or skip the browser setup: ScreenshotNeo
ScreenshotNeo is a website screenshot API and MCP server for developers. It accepts a URL in one request and returns PNG, JPEG, WebP, or PDF. Before capture, it accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status.
Basic cURL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
See the parameter reference and runnable options in the ScreenshotNeo documentation. The service supports full-page and CSS-selector element captures, 12 device presets or custom viewports, retina scale, dark mode, lazy-image loading, custom CSS and JavaScript, clicks, waits, resource blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, selectable cache TTL, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. Parameter names used by other screenshot APIs also work, which can simplify migration.
ScreenshotNeo also provides take_screenshot, get_page_info, and capture_pdf through its MCP server for Claude, Cursor, and other MCP clients. Plans include 1,000 shots per month free with no card; paid plans start at $5 for 3,000 shots. Every feature is available on every plan.
Sign up for the free ScreenshotNeo plan to get 1,000 screenshots each month without adding a card.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Which method should you use?
- Choose Playwright when you need browser-controlled interaction, custom application logic, or a download event.
- Choose Selenium when your Python or WebDriver infrastructure is already established.
- Choose ScreenshotNeo when a URL-to-image or PDF endpoint, cleanup of consent clutter, usage-based billing visibility, or an MCP workflow is more valuable than maintaining browsers.
Frequently Asked Questions
Can browser automation save an image without displaying a browser window?
Yes. Playwright and Selenium can run headless, so the browser renders pages without opening a visible window. Headless mode does not remove authentication, consent, lazy-loading, or anti-automation requirements.
Should I save an image URL with an HTTP client instead?
Only when you have a permitted, stable source URL and need the original response bytes. If the image is assembled by JavaScript, protected by a session, or visually changed by CSS or canvas, use the browser workflow that matches the required result.
What file format is best for automated screenshots?
PNG preserves pixels and transparency; JPEG is smaller for photographic content; WebP often reduces size while retaining good quality. Select based on downstream compatibility and whether lossless output is required.
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.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minute

