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

Use a real browser to capture a Nuxt page. Nuxt server rendering produces HTML; it does not, by itself, create a PNG, JPEG, WebP, or PDF file. For repeatable captures, start a Playwright page through Nuxt Test Utils and call page.screenshot(). Omit fullPage for the visible viewport; set fullPage: true for the entire scrollable document.

Choose the right kind of screenshot

Your choice affects both the code and the resulting image:

  • One-off manual image: open the Nuxt site in a browser and use the operating system’s screenshot command.
  • Viewport capture: records only what is currently visible in the browser viewport.
  • Full-page capture: stitches the complete scrollable document into one image.
  • Element capture: saves one component, such as a card, navigation bar, or modal.
  • Visual regression: compares a new rendering with a stored baseline using Playwright Test.

The automated options require a browser because the pixels are produced after CSS, client-side JavaScript, fonts, images, and layout have rendered.

Prerequisites for a Nuxt 4 capture

  • A Nuxt 4 application (the examples target current Nuxt 4 documentation).
  • Node.js and a package manager used by your project.
  • @nuxt/test-utils for Nuxt-aware end-to-end setup.
  • Playwright and its browser binaries.
  • A running Nuxt application, or a test configuration that starts it automatically.

Nuxt 3 is no longer the target for new instructions: Nuxt’s lifecycle notice states that Nuxt 3 reached end of life on 31 July 2026 and no longer receives normal bug fixes or security patches. Upgrade to Nuxt 4 or arrange extended support before building a new screenshot workflow.

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • 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.

Minimal full-page screenshot with Nuxt Test Utils

Nuxt Test Utils supplies a configured browser page through createPage, while Playwright supplies the screenshot API. In an end-to-end test or a script that follows your test runner’s startup and cleanup lifecycle, the essential code is:

import { createPage } from '@nuxt/test-utils/e2e'

const page = await createPage('/')
await page.screenshot({
  path: 'screenshot.png',
  fullPage: true
})
await page.close()

path writes the image to disk. fullPage: true captures the complete scrollable page; remove it to capture only the current viewport. The snippet is an illustrative combination of the documented Nuxt helper and Playwright API, so place it inside the lifecycle expected by your selected test runner.

Build a reliable capture step by step

1. Start the application or provide a host

Nuxt Test Utils can run a Nuxt application for end-to-end tests or target a host that you start separately. Make sure the URL is reachable before creating the page. If your page depends on environment variables, API mocks, authentication, or seeded data, configure those before the capture.

2. Set a deterministic viewport

Responsive layouts change at breakpoints. Set the same viewport for every run when your runner exposes Playwright’s page or context options. Keep the browser engine, browser version, operating system, device scale, fonts, and headless mode consistent when images are used as baselines.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 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. Wait for meaningful content

Do not capture immediately after navigation if the page loads data or images asynchronously. Wait for a selector that proves the main content is present, wait for a deliberate short delay when an animation needs to settle, or wait for network activity to become idle where that is appropriate. A selector-based wait is usually less fragile than an arbitrary long timeout.

4. Capture the required scope

// Visible viewport (default)
await page.screenshot({ path: 'viewport.png' })

// Entire scrollable document
await page.screenshot({ path: 'full-page.png', fullPage: true })

// A single component
await page.locator('[data-testid="pricing-card"]').screenshot({
  path: 'pricing-card.png'
})

Locator screenshots are clipped to the matching element. Use a stable identifier rather than a generated class name.

5. Close the page and preserve artifacts

Close the page and browser context in your runner’s cleanup hook. Save artifacts to a predictable directory and give each route, viewport, and state a distinct filename so parallel jobs do not overwrite one another.

Useful Playwright screenshot options

The screenshot API supports more than a file path:

  • Format and quality: choose PNG, JPEG, or another supported output format; quality settings apply where the format supports them.
  • Scale: control whether output follows CSS pixels or a higher device scale.
  • Clip: capture a specified rectangle when an element locator is not suitable.
  • Mask: cover volatile areas such as timestamps, rotating adverts, or user-specific data.
  • Animation behavior: disable or control animations when a stable frame matters.
  • Buffer return: omit path to receive image bytes in memory, then upload or process them yourself.

For a PDF, use the browser’s PDF capability rather than treating a screenshot as a paginated document. A screenshot is a raster image; text selection, links, and print pagination are different concerns.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • 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.

Visual regression testing in Nuxt

Playwright Test provides expect(page).toHaveScreenshot() for comparing a rendering with a stored baseline:

import { test, expect } from '@playwright/test'

test('home page stays visually stable', async ({ page }) => {
  await page.goto('/')
  await expect(page).toHaveScreenshot('home.png')
})

Screenshot assertions disable animations by default and wait for two consecutive screenshots to match before comparing. Review baseline changes rather than accepting every pixel difference automatically: content changes can be intentional, while a changed font, browser, operating system, power setting, or headless mode can create unrelated pixel differences.

Make baselines reproducible

  • Pin the browser version used by CI and local baseline generation.
  • Use the same operating-system image and installed fonts.
  • Keep viewport and device scale fixed.
  • Freeze dates, random data, rotating banners, and remote API responses.
  • Wait for images and fonts before capture.
  • Mask user-specific or continuously changing regions.
  • Review diffs as a human before updating the expected image.

Common problems and fixes

The image is blank or shows a loading shell

Cause: capture happened before hydration or data loading completed. Fix: wait for a content selector, ensure the API is reachable in the test environment, and check browser-console or network failures.

Only the top of the page appears

Cause: the default screenshot is viewport-only. Fix: add fullPage: true, and confirm that the document—not an internal scrolling panel—is the element that contains the content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • 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

Images are missing in a full-page shot

Cause: lazy-loaded images may not load until they approach the viewport, or remote requests may be blocked. Fix: wait for image completion, scroll through the page before capture when necessary, and make test assets available locally or through a reliable test endpoint.

The screenshot differs on CI

Cause: rendering varies with operating system, browser version, fonts, hardware, power source, and headless mode. Fix: standardize the environment and inspect the diff before changing the baseline.

createPage cannot connect

Cause: the Nuxt server has not started, the provided host is wrong, or the test runner’s setup hook is missing. Fix: verify the server URL from the same environment, wait for startup completion, and follow the Nuxt Test Utils lifecycle for your runner.

Selectors are unstable

Cause: generated classes or text change between builds. Fix: add stable data-testid or semantic selectors to the component you intend to capture.

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.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance, reliability, and cost considerations

Viewport screenshots are generally cheaper to render than very tall full-page images. Full-page capture can trigger additional lazy loading and produce large files; resize or compress only after the browser capture if your downstream system permits it. Reusing a browser context can reduce startup overhead in a suite, but isolate tests that require different cookies, permissions, or authentication.

For visual tests, deterministic local fixtures are more reliable than live third-party data. For production documentation or scheduled captures, record the URL, viewport, browser version, timestamp, and application revision alongside each artifact so a changed image can be explained.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF. It accepts cookie and consent banners as a visitor, then removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing result.

See the parameter reference in the ScreenshotNeo documentation. The same request can also control full-page capture, lazy images, CSS-selector elements, dark mode, device presets or custom viewports, retina scale, PDF paper and margins, custom CSS and JavaScript, clicks, selector or network-idle waits, ad and tracker blocking, headers, cookies, user agent, authorization, timezone, geolocation, transparent backgrounds, resizing, caching TTL, signed image links, asynchronous webhooks, bulk capture of up to 100 URLs, usage reporting, and OpenAPI-generated clients.

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

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(`HTTP ${res.status}`);
const bytes = Buffer.from(await res.arrayBuffer());
require('node:fs').writeFileSync('shot.webp', bytes);

ScreenshotNeo has an MCP server with take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account to try the API.

Which approach should you use?

Need Best fit Reason
One image once Manual browser capture No Nuxt-specific setup.
Repeatable local or CI artifact Nuxt Test Utils + Playwright Runs against your application and can capture viewport, full page, or elements.
Pixel regression checks Playwright Test Stores and compares baselines.
Scheduled or service-side captures ScreenshotNeo API and MCP access, cleanup of common overlays, and billing only for clean successful captures.

Frequently Asked Questions

Does Nuxt server-side rendering create a screenshot file?

No. SSR creates rendered HTML. A browser must paint that HTML and a screenshot API must encode the pixels into an image.

How do I capture just one Nuxt component?

Give the component a stable selector, then call its Playwright locator’s screenshot method, for example page.locator('[data-testid="card"]').screenshot({ path: 'card.png' }).

Why is my full-page screenshot extremely tall?

fullPage: true includes the entire scrollable document. Capture a specific locator or clip a region when a single section is the real requirement.

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.