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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To capture a website screenshot from a terminal, use Playwright’s playwright-cli: open the page, then run its screenshot command. Choose a viewport capture for what is visible, an element capture for one component, or --full-page for the scrollable page. These are screenshots of rendered webpage content—not the browser’s address bar or the whole desktop.

Capture a website screenshot with Playwright CLI

Playwright’s command-line workflow is useful when you want to inspect a page without writing an automation script. The CLI runs headless by default; add --headed when you want to see the browser window. The official getting-started guide covers Chrome, Firefox, WebKit, and Microsoft Edge. Follow its current installation instructions for your environment, then check the installed CLI’s help output because commands and options can change.

  1. Install the CLI by following the Playwright CLI getting-started guide.
  2. Open the target page: playwright-cli open https://example.com.
  3. Capture it: playwright-cli screenshot --filename=page.png.

The resulting file is saved under the chosen filename. Replace https://example.com with the page you need. If you need to see the browser while it runs, start the CLI in headed mode using the option shown by the guide or installed help output.

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

Choose what to capture

A screenshot’s scope affects what appears in the output. The CLI supports a visible viewport, a selected element, or a full-page capture. Consult the Playwright CLI screenshot and PDF reference for the current command syntax and option details.

#1 Best Overall
Sale
Kodak PIXPRO FZ45 Digital Camera, 16MP Point & Shoot (Black)
  • 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
  • Optical Zoom: 4x optical zoom with a 27mm wide angle lens for flexible framing indoors or outdoors
  • Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
  • Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
  • LCD Screen and Battery: 2.7in LCD screen with 2 AA alkaline batteries for convenient on-the-go use

Visible viewport

A viewport screenshot records the page area currently visible in the browser. It is the right choice for checking a layout at a particular scroll position and browser size. If the important content is farther down, navigate or scroll to it before capturing.

One element

Use an element target, such as a CSS selector, when you need a focused image of a form, card, or other component rather than the surrounding page. Confirm that the selector identifies the intended element on the page; if it does not match, there is no useful target to capture.

Full page

Add --full-page to capture the page’s scrollable content rather than just the visible viewport. For example: playwright-cli screenshot --full-page --filename=full-page.png. Long pages can produce very tall images; the CLI reference does not establish a universal maximum height, so check the resulting file and downstream tool limits.

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.

Filename, format, and resolution

Use --filename to choose where and under what name the image is saved. The documented formats include PNG, JPEG, and WebP. PNG is the default if no type or inferable filename extension selects another format. Use --hires for device-pixel output. In that mode, screenshot pixel coordinates no longer correspond one-to-one with CSS-pixel coordinates used by mouse commands, which matters if you later use the image to guide interactions.

Rank #2
Kodak PIXPRO FZ55-RD 16MP Camera 5X Optical Zoom 28mm Wide Angle 1080p
  • 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
  • Optical Zoom: 5x optical zoom with a 28mm wide angle lens for flexible framing indoors or outdoors
  • Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
  • Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
  • LCD Screen and Battery: 2.7in LCD screen and a rechargeable lithium-ion battery for on-the-go use

Get the page ready before capturing

A command can succeed and still capture an incomplete page. Navigate to the correct URL, then make sure the content you care about has rendered before taking the screenshot. The CLI capture reference describes capture options, not one readiness condition that works for every website.

  • For a page with a known loading indicator or target component, wait until that element reaches the state you need before capturing.
  • For a page that loads content as you scroll, scroll to the relevant area before a viewport capture; use full-page mode when you need the scrollable content.
  • For animation or frequently changing data, choose a moment when the appearance is stable enough for your purpose.
  • When the output looks blank or incomplete, inspect the page in headed mode and check whether it requires a login, user interaction, or additional time to render.

What a page screenshot does—and does not—show

A webpage screenshot captures rendered page content. It does not automatically include browser chrome such as the URL bar, tabs, or window frame, and it is not a capture of the entire operating-system desktop. If your goal is to document the browser window as a whole, use a desktop or window capture method instead.

For visual review, an image shows appearance; it does not expose the page’s semantic structure. Playwright’s documentation says, “Screenshots complement accessibility snapshots:” An accessibility snapshot provides a tree and references that can help identify and interact with controls, while the screenshot serves visual inspection. See the CLI screenshot reference for the related workflow.

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

When to use the CLI, Playwright code, or Puppeteer

Use the CLI for a command-oriented session where you want to open a page and capture it directly. For repeatable jobs integrated into an application, an API can make navigation, waits, capture settings, and cleanup part of your own code. Playwright’s Page API and Puppeteer’s screenshots guide document code-driven capture.

Rank #3
Teslong Articulating Borescope for Mechanic Automotive HVAC Wall Inspection
  • Easily Maneuver Your View: Tired of struggling with hard-to-reach areas during inspections? This two-way articulating borescope effortlessly navigates tight and complex spaces with its flexible and maneuverable probe. Enjoy crystal-clear visual feedback that saves you both time and money. Whether for automotive maintenance or household inspections, this tool transforms your inspection journey, making the process faster and easier than ever.
  • See Every Detail in Vivid Clarity: Experience the exceptional image quality of our 4.5-inch IPS LCD color screen, delivering sharp, high-resolution visuals. Whether you’re in bright sunlight or dim conditions, this display ensures you won’t miss a thing. Plus, with no app required, it's ready to go whenever you are!
  • Master the Most Challenging Inspections: Equipped with a 5FT semi-rigid gooseneck cable, this borescope provides the ideal combination of flexibility and stability, allowing you to navigate tight, intricate spaces with ease. The cable retains its shape as you guide it, giving you precise control for thorough inspections. Designed for versatility, it adapts effortlessly to various environments, ensuring no detail goes unnoticed.
  • Light Up the Darkest Corners: Equipped with built-in high-brightness LED lights on the camera probe, you’ll have the visibility you need even in the darkest environments. The adjustable illumination allows you to customize the brightness for every inspection, ensuring that no detail goes unnoticed in tight or confined spaces.
  • Ergonomics Meet Efficiency: This borescope is thoughtfully designed for maximum comfort and usability. The centrally located articulating joystick allows for effortless one-handed operation with either hand. The photo button is conveniently positioned on the back, making it easy to capture images or videos during inspections. Lightweight and compact, this borescope ensures prolonged use without fatigue, perfect for on-the-go inspections.

Puppeteer’s example waits for networkidle2 before saving an image. Treat that as an example, not a universal readiness rule: a site may continue making network requests, or its important content may need a different condition. The official examples do not establish a speed or fidelity winner between the tools.

Need Suitable route What to consider
Open a page and capture it interactively from a terminal Playwright CLI Supports browser selection, headed mode, and documented screenshot options.
Capture repeatedly from application code Playwright Page API or Puppeteer Choose a readiness condition appropriate to the page, then save and manage the output in your application.
Inspect visual appearance Screenshot Choose viewport, element, or full-page scope according to the question you need the image to answer.
Identify structure or controls Accessibility snapshot Use the accessibility tree and references alongside visual inspection when relevant.
Include tabs, URL bar, or the desktop Desktop or window capture method Page screenshot documentation describes webpage content, not a whole-window capture recipe.

Performance, reliability, and cost considerations

Capture time depends on browser startup, navigation, page rendering, and any wait condition you choose. The referenced documentation provides no comparative benchmarks, so there is no evidence-based universal claim that one route is faster. For repeated captures, avoid taking the image before the page is ready; an overly broad wait can also stall on sites with ongoing activity. Choose the smallest capture scope that answers your question, especially for very long pages, and verify the output file rather than assuming a successful command means the result is complete.

The CLI and browser automation approaches described here require you to install and run browser automation software in your own environment. Their documentation does not establish a per-screenshot service price; local costs and operational needs depend on your setup.

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

Troubleshooting common capture problems

The command is not recognized

The CLI may not be installed or available on your shell’s path. Revisit the installation steps in the official guide, then check the command’s help output and confirm that the environment where you installed it is the one running the command.

Rank #4
4K Digital Camera for Photography, 50MP Vlogging Camera for YouTube, Compact Cameras with 2.8" 180° Flip Screen, 16X Digital Zoom, Point and Shoot Camera with 32GB SD for Beginners, Travel, Family
  • 【4K UHD & 50MP High-Def Shooting with 180° Flip Screen】Capture stunning videos and stills in ultra HD with this digital camera’s 2.8″ flip screen for framing. Whether documenting family trips, everyday moments, or creating video content, it delivers clear images and smooth video.Ideal mini camera & vlog camera companion.
  • 【16X Digital Zoom & Precise Autofocus】Get closer with 16X digital zoom and sharp autofocus on this point and shoot digital cameras camcorder. Even if you shoot from a distance, you can still take clear and beautiful photos. Whether shooting landscapes or portraits, this cameras for photography delivers crisp clarity every time.
  • 【Portable & Multi-Functional Design】Our mini camera weighs just 0.6 lbs and serves as a video camera, camcorder, and action camera. Built-in flash, time-lapse, and slow-motion modes make it the ultimate kids camera on the go.Record the beautiful and happy life of children.
  • 【Versatile for YouTube & Beyond】This vlog camera doubles as a webcam and supports Data line transfer for seamless sharing. Connect to PC for live streaming and video chats on youtube, making it the perfect digital camera for content creators.Whether you're recording a vlog on the go, filming a makeup tutorial, or capturing fun moments with friends, this camera has you covered.
  • 【Complete Accessories & Service】The camera comes with a 1500mAh rechargeable battery, which can be used continuously for 4-5 hours. Accessories includes a lens cleaning cloth, Type-C cable, 32GB card, carrying case, and lanyard.. Enjoy an 18-month WARRANTY and responsive customer support. Your camara awaits—ready for every adventure!

The image is blank or missing important content

Confirm the URL is correct and the page has finished rendering the content you expect. Try headed mode to see whether a login screen, consent prompt, challenge, or other interaction blocks the page. Wait for a meaningful page condition rather than assuming a fixed delay works for every site.

The screenshot cuts off below the fold

A standard viewport capture shows only the visible area. Use --full-page for scrollable page content, or scroll to a particular section first when you only need a viewport image of that section.

The element capture does not target the right thing

Check that your selector matches the intended element in the current page state. If the page renders the component later, wait for it first. For debugging, inspect the page in headed mode before changing the selector.

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

Image coordinates do not match interaction coordinates

If you used --hires, the output uses device pixels while mouse commands use CSS pixels. Account for that scale difference when mapping points from the image to browser interactions.

Best Value
Sale
Fazoxo 2K Security Camera Wireless Outdoor, WiFi Cameras for Home Security
  • Solar-Powered for Extended Battery Life: The wirless camera comes with a high-efficiency solar panel(wire length 59 inch), designed to provide a consistent supplemental power source under adequate sunlight. This significantly reduces the need for manual recharging and supports a more sustainable, low-maintenance surveillance experience. It's an ideal power solution for long-term,wire-free outdoor installation
  • 2K UHD Clarity with Night Vision & 3x Zoom: This camera delivers crisp, detailed video day and night. It features standard infrared night vision for clear black-and-white footage in the dark, and a built-in spotlight mode that activates full-color night vision for more vivid details. The 3x digital zoom lets you focus on key areas like faces or license plates. (Compatible with 2.4GHz Wi-Fi networks only)
  • Flexible Storage Options: Your event-triggered videos are securely backed up with cloud storage(3 day trial). For extended coverage, you can upgrade to premium cloud plans (subscription required) or insert a microSD card (up to 128GB, not included) for local recording of motion events
  • Smart AI Detection & Instant Alerts: Receive prompt phone notifications when motion is detected. The basic motion detection works without any subscription. Can be individually set to recognize humans, so that all moving objects except for humans will not trigger detection
  • Two-Way Audio & Real-Time Interaction: Built-in microphone and speaker let you communicate directly through the app. Greet visitors, deter unwanted guests, or check in on your family and pets from anywhere

The URL bar or desktop is absent

That is expected: a page screenshot captures webpage content, not browser or operating-system chrome. Switch to a desktop or window capture method if those elements are required.

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 one-request API can return a PNG, JPEG, WebP, or PDF; see the ScreenshotNeo documentation for current parameters and response details.

Example cURL request:

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

Replace YOUR_API_KEY with your key and change the target URL as needed. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; each step 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 provides 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 with no card; paid plans start at $5 for 3,000 shots.

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

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.

Frequently Asked Questions

Can a Playwright CLI screenshot include the browser URL bar?

No. It captures webpage content, not browser chrome. Use a desktop or window capture method when you need the URL bar or tabs.

Does a full-page screenshot include content that only loads after scrolling?

It captures scrollable page content, but sites that load content dynamically may need scrolling or a suitable wait before capture. Check the saved image to confirm the content is present.

Is Playwright CLI faster than Puppeteer?

The cited official documentation does not provide comparative speed measurements, so it does not establish a faster option.

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.

Quick Recap

SaleBestseller No. 1
Kodak PIXPRO FZ45 Digital Camera, 16MP Point & Shoot (Black)
Kodak PIXPRO FZ45 Digital Camera, 16MP Point & Shoot (Black)
16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting; Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
$99.99
Bestseller No. 2
Kodak PIXPRO FZ55-RD 16MP Camera 5X Optical Zoom 28mm Wide Angle 1080p
Kodak PIXPRO FZ55-RD 16MP Camera 5X Optical Zoom 28mm Wide Angle 1080p
16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting; Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
$139.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.