← Blog
Take Website Screenshots with Playwright

Take Website Screenshots with Playwright

June 09, 2026

Overview

Integrate FrameSnap with Playwright for robust screenshot testing workflows. Capture consistent screenshots across Chromium, Firefox, and WebKit browsers.

Prerequisites

  • A FrameSnap API key (sign up free)
  • JavaScript installed in your project

Make your first screenshot request

curl "https://framesnap.dev/v1/screenshot?url=https%3A%2F%2Fexample.com&width=1280&format=png" --output screenshot.png

Integrate into your JavaScript application

Add the FrameSnap API call to your JavaScript codebase using your preferred HTTP client. Pass the target URL and your API key, then handle the returned image in your application logic.

Common options

  • width: set viewport width (1280 for desktop, 768 for tablet, 375 for mobile)
  • full_page: set to true to capture the entire scrollable page
  • format: png for best quality, jpeg for smaller files, pdf for documents
  • delay: wait for JavaScript to render before capturing
  • dark_mode: set to true to render with dark color scheme

Next steps

Try the free screenshot tool to test URLs interactively, or read the API documentation for full parameter details.

Capture Screenshots with FrameSnap

One API call. PNG, JPEG, or PDF. Free tier included.