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

“Hidden” can mean three different things: an element may be below the viewport, inside a nested scroll container, or suppressed by CSS or application state. A full-page screenshot captures the document’s scrollable page, but it does not automatically reveal display:none content or expand every inner scroller. In Playwright, use a locator screenshot for one element, fullPage: true for the whole document, and the page’s own controls or a controlled style/state change when the element is genuinely hidden.

Identify what “hidden” means before capturing

The correct technique depends on the element’s rendered state. Treat these cases separately:

State What you see Correct approach
Offscreen in the document The element exists and has a layout box, but it is above or below the current viewport. Use a locator screenshot, which scrolls the element into view, or capture the entire document.
Inside a nested scroller The element is deeper inside a fixed-height panel, modal, table, or other independently scrolling container. Scroll that container to the target position, then capture. A document-level full-page shot may not expand the inner area.
Collapsed by the interface A tab, accordion, menu, dialog, or disclosure control has not been opened. Click or otherwise use the site’s own control before taking the screenshot.
Suppressed by CSS display:none, visibility:hidden, content-visibility:hidden, or an equivalent application state prevents rendering. Reveal the intended state, or apply a narrowly scoped test-only change when you control the page.

An ordinary screenshot records rendered pixels. Scrolling changes which rendered pixels are in view; it is not the same as changing CSS or opening a collapsed component.

Capture one offscreen element with Playwright

Playwright’s locator screenshot is the most direct solution when you need an image of one element rather than the complete page. It waits for actionability checks, scrolls the matched element into view, and clips the output to that element’s area. The locator must match the page you are automating; the example below uses an accessible region name only as an illustration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • 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
import { chromium } from 'playwright';

const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
await page.goto('https://example.com', { waitUntil: 'networkidle' });

const target = page.getByRole('region', { name: 'Details' });
await target.screenshot({ path: 'details.png' });

await browser.close();

If the target is a normal element with a stable selector, use a CSS locator instead:

const target = page.locator('[data-testid="details-panel"]');
await target.screenshot({ path: 'details.png' });

This produces an element-focused image, not a full-page image. If the element is partly covered by a sticky header, an animation is still running, or a locator matches multiple nodes, fix those conditions rather than assuming that scrolling failed.

Capture the entire document with a full-page screenshot

When the requirement is “show everything on the page,” use a page screenshot with fullPage: true. This captures the document’s full scrollable page instead of only the current viewport.

import { chromium } from 'playwright';

const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
await page.goto('https://example.com', { waitUntil: 'networkidle' });

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

await browser.close();

fullPage: true does not turn a CSS-hidden node into visible content. It also should not be treated as a guarantee that every nested scroll area is expanded. For a long panel, scroll the panel itself and capture either the panel or the desired element.

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

Handle nested scroll containers

A fixed-height container can have its own scroll position. The browser may report the target as present while only a different portion of that container is visible. Scroll the container, wait for rendering, and then capture:

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • 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
const panel = page.locator('[data-testid="results-panel"]');
const target = panel.locator('[data-testid="item-100"]');

await panel.evaluate((el) => {
  el.scrollTop = el.scrollHeight;
});
await page.waitForTimeout(200);
await target.screenshot({ path: 'item-100.png' });

For a horizontal scroller, set scrollLeft instead. If the page lazily loads rows or images as you scroll, wait for the target content or a loading indicator to settle before capturing. A full document screenshot can include the panel’s outer box while still omitting content that exists only in the panel’s internal scroll range.

Diagnose whether CSS or state is hiding the element

Use the page’s own UI first. Open the accordion, select the tab, expand the menu, or click the disclosure button exactly as a visitor would. This preserves the application’s intended state and triggers content that may be inserted only after interaction.

When the result is unexpected, inspect the target before taking a screenshot:

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.
const diagnostics = await target.evaluate((el) => ({
  rect: el.getBoundingClientRect().toJSON(),
  potentiallyVisible: el.checkVisibility(),
  display: getComputedStyle(el).display,
  visibility: getComputedStyle(el).visibility
}));
console.log(diagnostics);

getBoundingClientRect() reports the element’s position and dimensions relative to the viewport. A zero-width or zero-height rectangle often indicates that no usable layout box exists. checkVisibility() can identify cases such as display:none or skipped rendering from content-visibility:hidden. A positive rectangle does not prove that pixels are unobscured: an overlay, clipping ancestor, opacity, or stacking order can still affect the final image.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • 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.

display: none

An element with display: none has no associated layout box. Scrolling cannot bring it into view because there is nothing to scroll to. Open the feature that owns it, change the application state, or—only in a controlled test page—apply a temporary, narrowly targeted style and label the output as a modified rendering.

visibility: hidden

visibility: hidden preserves layout space but hides the box’s pixels. A locator may find the node, yet a screenshot still shows empty space. Remove the hiding state through the intended UI or test fixture; do not assume a universal visibility: visible override will work through ancestor rules, transitions, or scripts.

Collapsed components and transitions

Clicking a control may start an animation or fetch data. Wait for a stable selector, a specific text node, or a network condition after the interaction. Capturing immediately can produce an intermediate frame or an empty shell.

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

Scroll, reveal, and capture in one robust workflow

  1. Choose a stable locator. Prefer a role, label, or test identifier over a brittle position-based selector.
  2. Navigate and establish the right state. Set authentication, viewport, cookies, and any required feature flags before locating the target.
  3. Open the owning control. Expand tabs, accordions, menus, or dialogs through their normal interaction.
  4. Scroll the correct surface. Let a locator screenshot scroll a document-level target; explicitly scroll an inner container for nested content.
  5. Wait for content to settle. Wait for a selector, a known response, fonts, images, or a short transition to finish.
  6. Inspect diagnostics if it is still missing. Check the rectangle, computed display and visibility, and whether an overlay covers it.
  7. Select the capture scope. Use locator.screenshot() for one element and page.screenshot({ fullPage: true }) for the whole document.
  8. Keep modified captures identifiable. If you changed CSS or application state, record that fact alongside the image.

Equivalent Puppeteer choices

Puppeteer provides the same fundamental scope decision. Use a page screenshot with fullPage: true for the complete document, or use a clip rectangle when you deliberately want a manually defined region. For a target that is offscreen, scroll it with page-side JavaScript first, then capture the relevant clip or viewport.

Rank #4
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • 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
await page.goto('https://example.com', { waitUntil: 'networkidle0' });
await page.evaluate(() => {
  document.querySelector('[data-testid="details-panel"]')?.scrollIntoView({ block: 'center' });
});
await page.screenshot({ path: 'page-full.png', fullPage: true });

As with Playwright, neither fullPage nor clip reveals content that the page is intentionally not rendering.

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 for developers. Send one request with a URL to receive PNG, JPEG, WebP, or PDF output. It can capture a full page, one element by CSS selector, a chosen viewport or device preset, dark mode, retina scale, and lazy-loaded images. For difficult pages, its options include custom CSS and JavaScript, clicking an element before capture, waiting for a selector, delay, or network idle, hiding selectors, blocking ads, trackers, requests, or resource types, and supplying headers, cookies, user-agent, Authorization, timezone, or geolocation. You can also resize images, set a cache TTL, create signed public-image links, submit asynchronous jobs with signed webhooks, capture up to 100 URLs per bulk call, use PDF paper sizes, margins, landscape and page ranges, convert HTML/CSS to an image, and check usage through its API or OpenAPI specification. Parameter names used by other screenshot APIs also work, which eases migration.

Before capture, ScreenshotNeo accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and whether the request was billed.

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

One-call examples

See the complete parameter reference in the ScreenshotNeo documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients, so an AI agent can perform the capture without you building browser orchestration.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【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.

Plans and billing

Plan Included shots Price
Free 1,000 per month $0, no card
Starter 3,000 $5
Growth 15,000 $15
Pro 60,000 $39
Scale 250,000 $99
Business 1,000,000 $249

Every feature is available on every plan, and yearly billing provides two months free. Start with 1,000 free screenshots a month with no card; paid plans start at $5 for 3,000. Cookie banners, popups, and chat widgets are removed before the shot, failed loads and bot checks are never billed, and the MCP server lets AI agents take screenshots.

Troubleshooting missing or incorrect captures

The locator is found but the screenshot is empty

Inspect display, visibility, the bounding rectangle, and ancestor styles. The node may have no box, be hidden by an ancestor, or be rendered only after a control is opened.

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

The target is still not in the image

Check whether you scrolled the wrong surface. A nested panel needs its own scrollTop or scrollIntoView() operation; moving the document scrollbar is insufficient.

The full-page image stops early

Look for a fixed-height element with internal overflow, lazy content that loads only during interaction, or a page that has not finished rendering. Capture after the required state is established, and separately scroll inner containers.

The screenshot contains a cookie banner or chat bubble

For Playwright or Puppeteer, dismiss the banner or hide the widget in your test setup. ScreenshotNeo can accept the consent prompt and remove known consent, newsletter, and chat elements before capture.

The capture times out or shows a bot challenge

Verify URL access, authentication, headers, and timing. A challenge page is not the requested content; diagnose the site’s access requirements rather than trying to crop around it. ScreenshotNeo identifies bot checks, blank pages, timeouts, and failed loads in its response and does not bill those results.

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

Choosing the right screenshot scope

Goal Use Limitation
One visible or offscreen element Playwright locator screenshot Clips to the element; it does not reveal CSS-hidden content.
Entire document Playwright page screenshot with fullPage: true Does not automatically expand nested scrollers or hidden UI.
Manual region in Puppeteer clip after positioning the page You must calculate the region and scroll the correct container.
Repeatable API or agent workflow ScreenshotNeo Requires an API key and correct request options, but avoids local browser setup.

Frequently Asked Questions

Can a screenshot API capture an element set to display:none?

Not from its rendered pixels alone. The element must be revealed through application state or a controlled CSS change before capture; otherwise it has no layout box to image.

Does a full-page screenshot include content below an inner panel’s scrollbar?

Not necessarily. Scrollable elements can have their own independent content range, so scroll that container and capture it separately when the deeper content matters.

What should I record when capturing a deliberately hidden state?

Record the selector, the interaction or style/state change used, the viewport, and that the image represents a modified rendering rather than the page’s default state.

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.

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.