Set fullPage: true in Playwright’s page.screenshot() call to capture the full scrollable document instead of only the visible viewport. Add path to save an image file.
Take a full-page screenshot in JavaScript
Install Playwright, save this as screenshot.js, then run it with Node.js. The example launches Chromium, opens a page, saves a PNG, and closes the browser.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const page = await browser.newPage();
await page.goto('https://example.com');
await page.screenshot({ path: 'screenshot.png', fullPage: true });
} finally {
await browser.close();
}
})();
The essential setting is fullPage: true. Playwright defines it as capturing the full scrollable page rather than the current viewport; it defaults to false. See the Page screenshot API.
Install and run
- In a new project directory, run
npm init -y. - Install Playwright with
npm install playwright. - Save the script above as
screenshot.js. - Run
node screenshot.js. Playwright writesscreenshot.pngto the current directory.
If your project already uses Playwright, use its installed package and browser setup rather than adding a second copy.
#1 Best Overall
- CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
- WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
- A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
Choose output, scale and repeatability options
Start with the full-page setting and add options only when the output needs them.
| Need | Option | Effect |
|---|---|---|
| Save a file | path: 'screenshot.png' |
The extension determines the image type. Documented formats include PNG, JPEG, and WebP. |
| Process the image in code | Omit path |
page.screenshot() returns a buffer that can be passed to image processing or comparison code. |
| Use one pixel per CSS pixel | scale: 'css' |
Can reduce dimensions and file size on high-DPI displays. |
| Use device pixels | scale: 'device' |
Uses the device pixel scale and can create a larger image. This is the default. |
| Reduce animation-driven variation | animations: 'disabled' |
Disables CSS animations, transitions, and Web Animations for the screenshot operation. The default is 'allow'; finite and infinite animations have distinct documented handling. |
| Hide or adjust dynamic content | style: '...' |
Applies a stylesheet during capture, useful for hiding changing elements or making output more repeatable. |
| Cover sensitive or variable elements | mask: [locator] |
Covers the bounding boxes of selected locators in the screenshot. |
| Make the background transparent | omitBackground: true |
Omits the background for formats that support transparency; it does not apply to JPEG. |
For example, to save a CSS-pixel WebP and disable animations:
Rank #2
- CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
- SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
await page.screenshot({
path: 'screenshot.webp',
fullPage: true,
scale: 'css',
animations: 'disabled'
});
Refer to the API reference for option details and current behavior.
Python syntax
Python uses full_page=True rather than JavaScript’s camel-case spelling. The synchronous form is:
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 minuteRank #3
- Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
- Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
- Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
- In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
- Ultra-thin bezels: Maximize your viewing experience with thin bezels.
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
try:
page = browser.new_page()
page.goto("https://example.com")
page.screenshot(path="screenshot.png", full_page=True)
finally:
browser.close()
In an async Python script, use await page.screenshot(path="screenshot.png", full_page=True). The Python screenshots guide documents both forms.
Use a full-page screenshot in a visual test
For Playwright Test, await expect(page).toHaveScreenshot() captures and compares an expected screenshot. The assertion waits until two consecutive page screenshots produce the same result, then compares the last screenshot with the expectation. Screenshot assertions are part of the Playwright test runner; see the visual comparisons guide.
Rank #4
- CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
- SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
- MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
- KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
- INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Visual baselines can vary with operating system, browser version, settings, hardware, power source, and headless mode. Generate and compare baselines in the same environment where possible. A passing comparison in one environment does not guarantee pixel-identical output in another.
Troubleshoot common problems
- The image shows only the viewport: Confirm the screenshot call includes
fullPage: truein JavaScript orfull_page=Truein Python. The default is viewport capture. - No file appears: Check that
pathis present and that the process can write to the target directory. A relative path is resolved from the running process’s working directory. - Your code needs image bytes instead of a file: Omit
pathand use the buffer returned bypage.screenshot(). - Screenshots differ between runs or machines: Disable animations or inject a stylesheet to hide or stabilize dynamic elements. For visual assertions, keep the browser and host environment consistent with the baseline.
- The image is unexpectedly large: Try
scale: 'css'instead of the default device-pixel scale. - Transparency is missing: Use a format that supports transparency;
omitBackgroundis not applicable to JPEG.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. A single GET request can return a screenshot or PDF. Its capture flow accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. AI agents can use its MCP server tools, including take_screenshot, get_page_info, and capture_pdf.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC 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 & 11Use the API instead of installing and running a browser when you want a returned image from one request. See the ScreenshotNeo website and API documentation.
Best Value
- 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
- 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
- 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
The Free plan includes 1,000 shots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is available on every plan. Sign up for 1,000 free screenshots a month with no card.
Frequently Asked Questions
Does fullPage scroll the page before taking the screenshot?
It captures the full scrollable page instead of just the visible viewport; the API describes the result, not a required manual scrolling sequence.
Can I capture a screenshot without writing it to disk?
Yes. Leave out path; the screenshot call returns a buffer.
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.

