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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

If a Playwright screenshot loses the right side of a page, check the CSS viewport width against the rendered document width first. fullPage: true captures the page’s full scrollable height; it does not widen the browser viewport or force off-screen content to render. Compare window.innerWidth with document.documentElement.scrollWidth, then set the viewport or address the overflowing layout according to what the image needs to show.

Why does my Playwright screenshot cut off the right side?

A page screenshot normally captures the current viewport. If the page’s layout or a particular element is wider than that viewport, content may extend beyond the captured area. Playwright’s fullPage: true option expands capture vertically to include the full scrollable page; it is not a horizontal-width setting. The Playwright screenshot API documents the full-page option and other screenshot parameters.

The exact cause depends on your page, viewport configuration, browser, and screenshot options. Start by measuring the viewport and document rather than assuming that full-page capture, image scaling, or a larger clip will fix the layout.

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

How do I diagnose the width mismatch?

Run this after the page has loaded and rendered. It reports the viewport width and the document and body scroll widths in CSS pixels:

#1 Best Overall
Sale
SAMSUNG 34" ViewFinity S50GC Series Ultra-WQHD Monitor, 100Hz, 5ms, HDR10, AMD FreeSync, Eye Care, Borderless Design, PIP, PBP, LS34C502GANXZA, 2023, Black
  • DO MORE ON ONE SCREEN: See every detail on the wider display featuring a 21:9 aspect ratio; Ultra WQHD provides the simplest way to maximize screen real estate and experience truly seamless multitasking on just one screen.Brightness (Typical) : 300 cd/㎡. Static Contrast Ratio 3000:1.
  • ENJOY A BILLION COLORS W/ INCREDIBLE DEPTH: With HDR10 that displays over 1 billion colors compared to 16.7 million for typical SDR technology, dark colors are darker and the brightest are even brighter; Content is experienced as the creator intended
  • CARE FOR YOUR EYES DAY and NIGHT: An ambient light sensor on the monitor detects lighting in your workstation and automatically adjusts brightness; Eye Saver Mode minimizes excessive blue light, and Flicker Free relieves eye strain
  • SEE CONTENT SMOOTHER, EVEN GAMING: A faster than average refresh rate updates the image on screen more often every second; 100Hz refresh rate reduces lag and motion blur when playing games, watching videos, or working on design projects
  • STAY IN SYNC WITH THE ACTION: AMD Radeon FreeSync keeps the refresh rate of your monitor and graphics card in sync to reduce image tearing for a superfluid entertainment experience; Watch movies and play games without interruptions
const dimensions = await page.evaluate(() => ({
  innerWidth: window.innerWidth,
  documentWidth: document.documentElement.scrollWidth,
  bodyWidth: document.body.scrollWidth,
}));
console.log(dimensions);

If documentWidth is greater than innerWidth, some content extends beyond the viewport. That comparison is a diagnostic, not a Playwright guarantee about the cause. Inspect the page to find the element responsible and decide whether the width is intentional, such as a wide table, or the result of a layout rule.

If the widths match but the saved image still omits content, check whether the screenshot uses a clip rectangle, whether the page layout changes during capture, and whether the issue is limited to full-page screenshots or one browser engine.

Choose the capture behavior that matches the image you need

Need Playwright setting or check What it controls
Only what is currently visible Default page screenshot Captures the viewport, so content outside it is not included.
The page’s full scrollable height fullPage: true Extends capture vertically; it does not widen the CSS viewport.
A wider desktop layout Set the browser context or page viewport width before the page lays itself out Changes the CSS layout viewport. Verify the resulting layout after navigation.
A specific known region clip: { x, y, width, height } Selects a screenshot rectangle. Its right edge must reach the content you want, but clipping does not make off-viewport content render.
Compact output or higher raster resolution scale: 'css' or scale: 'device' Controls output pixel density, not CSS layout width. CSS scale uses one image pixel per CSS pixel; device scale uses one image pixel per device pixel.

See the Playwright documentation for clip geometry and screenshot scale. A wider raster image from device-pixel scaling is not a substitute for a wider CSS viewport.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Dell 34 Monitor S3425DW, WQHD VA, 120Hz, FreeSync Premium, Eye Comfort
  • Improved ComfortView Plus: Reduces harmful blue light emissions to ≤35%, for all-day comfort without sacrificing color accuracy.
  • Refresh rate: A smooth, tear-free experience with AMD FreeSync Premium (refresh rate up to 120Hz) and an ultra-low 0.03ms response time create a captivating experience for work and play.
  • Vivid colors: Enjoy vibrant, true-to-life colors with 99% sRGB and 95% DCI-P3 coverage. The VA panel with 3000:1 contrast ratio and HDR readiness delivers stunning depth, detail and realism.
  • Re-engineered sound quality: Enjoy more detailed sound with spacious audio featuring greater output power, deeper frequency response and more decibel range than the previous generation.
  • Easy connectivity: Keep your desk organized and clutter-free with a single USB-C cable (up to 65W power delivery).

Set the viewport before capturing

Choose a CSS viewport width that suits the layout you intend to capture, configure it before navigation or before the page lays itself out, and then inspect the rendered dimensions. If the target is a responsive desktop design, use the width at which that design is meant to appear—not merely a larger output scale.

Once the page is in the desired layout, use the screenshot mode that matches your goal. For example, to capture the full vertical page at CSS-pixel scale:

await page.screenshot({ path: 'wide-page.png', fullPage: true, scale: 'css' });

Playwright’s Screenshots guide shows viewport and full-page capture examples. If content still extends to the right, inspect the overflowing element and adjust the viewport or page layout based on whether that overflow should be included.

Rank #3
Sceptre 34-inch Curved ultrawide WQHD Monitor (3440 × 1440), R1500, up to 180Hz/165Hz, DisplayPort x2, 99% sRGB, 1ms, Built-in Speakers, Machine Black, 2025 (C345B-QUT168)
  • 1ms MPRT: Colors fade and illuminate instantly with a 1ms response time, eliminating ghosting and piecing together precise imagery during action-packed scenes and gaming.
  • Luminous Backcover Lights: A colorful LED light illuminates the back cover of the monitor, delivering a uniquely modern design.
  • WQHD Resolution: At 5 million pixels, Wide Quad HD Resolution (3440 x 1440) display resolution provides you with the next level of refined, and detailed picture over the current 1080P standard.
  • 21:9 Ultrawide: See more and do more with an ultrawide monitor. 21:9 provides you with 30% more screen space versus the conventional monitor. With an ultrawide resolution of 3440 x 1440, expand your performance and productivity.

Check clip boundaries and full-page-only differences

When using clip

A clip rectangle is defined by x, y, width, and height. Check that x + width reaches the rightmost content you intend to preserve. A clip only selects a rectangle from the rendered page; it does not expand the viewport or reveal content that never rendered there.

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

When only full-page screenshots look wrong

Compare the page’s layout in a normal viewport screenshot with its full-page output. A historical Chromium issue reported behavior involving viewport-relative vh and vw units during full-page screenshots, but it does not establish a current, universal defect. If the difference is reproducible, inspect CSS that depends on viewport dimensions and test with the Playwright version and browser installed in your project.

When it happens in only one browser engine

Reproduce the case with the same page, Playwright version, and browser engine before concluding that the engine is responsible. A historical WebKit issue report described a full-page snapshot failure on some websites; it is not proof of a current general problem. A separate historical Chromium issue report concerned vh and vw behavior in full-page screenshots.

Rank #4
Alienware 34 Curved Gaming Monitor – AW3425DWM - 34-inch WQHD 180Hz 1ms Display, 1500R, AMD FreeSync Premium, VESA AdaptiveSync.
  • Bring virtual worlds to life with WQHD quality: Explore your games' vast, detailed landscapes with WQHD resolution and fluid, responsive visuals in an iconically designed ultrawide gaming monitor.
  • Dive into expansive details: Whether you’re exploring open worlds or completing challenges, you’ll never miss a detail thanks to WQHD resolution and a 34” ultrawide panel with a 1500R curve.
  • Fluid Performance: Get in the game with a smooth 180Hz refresh rate, 1ms gray to gray response time, AMD FreeSync Premium and VESA Adaptive Sync Technology.
  • Sharp visuals: Enjoy vibrant colors with DCI-P3 95% color coverage and VESA DisplayHDR 400 certification.
  • Game longer: Lock in for marathon gaming sessions with a dedicated console mode and hardware-based low blue light solution that reduces eye strain while preserving color.

Common fixes that do not solve a width problem

  • Adding fullPage: true: useful for full scrollable height, not for widening the viewport.
  • Increasing device-pixel scale: changes raster resolution, not the CSS layout viewport.
  • Making the clip wider: changes the selected rectangle, but does not make off-viewport content render.
  • Hiding horizontal overflow immediately: can conceal the symptom while also removing content the screenshot is supposed to show. Find the overflowing element before changing overflow behavior.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need an API-driven capture instead of configuring a Playwright browser, ScreenshotNeo takes a screenshot from one GET request. Its clean-shot process accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off.

Example cURL request, using the documented ScreenshotNeo API:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; the response includes X-Page-Verdict and X-Billed headers. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

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

Best Value
SANSUI 34-Inch Curved Gaming Monitor UWQHD 3440 x 1440P 200Hz Ultrawide
  • 34 inch Curved 1500R UWQHD(3440 x 1440) @ 200Hz Fast VA Ultrawide Gaming Monitor with AI built-in.
  • Performance: Up to 200Hz Refresh Rate | OD 1ms Response Time丨 FastVA | AI Blue light reduction | AI Crosshair | AI PQ | Sniper Scope | Support VRR with HDMI2.1
  • Ergonomic Stand: Tilt / Kensington Lock: -5°~15°(+/-2°) / Yes丨VESA Compatible (100 x 100mm) | 178° Wide Viewing Angle | PIP/PBP,21:9
  • Input &Output: DP 1.4 (Up to 200)|HDMI2.1 X 2 (Up to 200)|Earphone |No speakers
  • Warranty: SANSUI 34-inch Curved gaming computer monitor support money-back and free replacement warranty from order date within 30 days and lifetime technical support.

Frequently Asked Questions

Does fullPage: true include content on the right?

It captures the full scrollable height, not a wider viewport. Measure the document and viewport widths to diagnose horizontal overflow.

Why is a full-page screenshot still too narrow?

Full-page capture is a vertical extent option. Set the intended CSS viewport width and inspect the rendered layout; output scaling and clipping do not widen that layout.

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.