What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use Chrome DevTools Protocol (CDP) through Selenium when you need an image that extends below the viewport. Selenium’s ordinary save_screenshot() method is the simplest starting point, but its documented behavior is best effort. For an explicitly beyond-viewport Chrome capture, call CDP’s Page.captureScreenshot with captureBeyondViewport enabled, then decode the returned base64 image. The exact Selenium method signature depends on your Selenium binding and Chrome version, so keep those versions aligned and verify the generated API for your installation.
Choose the right capture method
Your choice depends on whether you need an image or a printable document, and whether Chrome-specific behavior is acceptable.
| Method | Best use | What to expect | Main trade-off |
|---|---|---|---|
driver.save_screenshot() or the WebDriver screenshot endpoint |
A quick screenshot of the current browsing context | Selenium describes the implementation as best effort: it prefers the entire page, then the current window, then the visible portion of the current frame. | Whether a very tall page is included can depend on the browser, context and version. |
Chrome CDP Page.captureScreenshot |
An explicitly beyond-viewport Chrome image, optionally clipped to a region | Set captureBeyondViewport to true. The result is base64-encoded image data. |
CDP is Chrome-specific, version-dependent and not intended as a stable, cross-browser testing API. |
| Selenium page printing | A printable document | Headless Chromium can print the page to PDF. | PDF pagination is a different output path from a raster screenshot. |
For a portable test suite, treat CDP as an isolated Chrome adapter. Selenium describes WebDriver BiDi as its standards-based cross-browser direction, but you should check current BiDi support for the exact screenshot operation before treating it as a drop-in replacement.
Prerequisites and version discipline
- Install Selenium for your language and have Chrome available on the machine that runs the test.
- Record the Selenium and Chrome versions in your build logs. CDP command names and generated binding signatures are tied to browser protocol versions.
- Use the Selenium API documentation generated for your installed version. The Java example commonly shown in documentation is generated for Selenium 4.22.0 and DevTools v124; do not copy that signature into a different version without checking it.
- Decide whether the output is an image (PNG, JPEG or another format supported by your binding) or a PDF before writing the capture code.
Fast path: Selenium’s normal screenshot API
Start with the ordinary WebDriver endpoint when a best-effort full-page result is acceptable. This Python example waits for the document to finish loading, saves a PNG and reports the file path.
#1 Best Overall
- 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
- 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
- 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
- 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
- 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
# Remove this line if you want to watch Chrome interactively.
options.add_argument("--headless=new")
options.add_argument("--window-size=1440,900")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com")
driver.save_screenshot(str(Path("page.png")))
finally:
driver.quit()
This captures the current browsing context. Selenium’s documentation does not promise that every page, frame or Chrome release will produce a complete tall image through this endpoint. If the saved image stops at the viewport, use the CDP path below.
Explicit beyond-viewport capture with Chrome CDP
Chrome’s Page domain defines captureBeyondViewport as “Capture the screenshot beyond the viewport.” Its protocol default is false, so set it explicitly when content below the initial viewport is required. CDP also accepts a clip describing a region and returns image data encoded as base64.
Python: call the CDP command and decode the result
Selenium Python exposes CDP commands through execute_cdp_cmd. The command shape below follows the protocol: ask for PNG output and enable beyond-viewport capture. If your installed Selenium release rejects a parameter, consult that release’s generated DevTools API and adjust the binding-specific spelling.
import base64
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
URL = "https://example.com"
OUTPUT = Path("full-page.png")
options = Options()
options.add_argument("--headless=new")
options.add_argument("--window-size=1440,900")
driver = webdriver.Chrome(options=options)
try:
driver.get(URL)
# Wait for the browser's load event. Pages with client-side rendering
# may need an additional, page-specific wait (see the next section).
driver.execute_script("return document.readyState")
result = driver.execute_cdp_cmd(
"Page.captureScreenshot",
{
"format": "png",
"captureBeyondViewport": True
}
)
OUTPUT.write_bytes(base64.b64decode(result["data"]))
print(f"Wrote {OUTPUT}")
finally:
driver.quit()
The returned data field is base64 text, not raw bytes. Decoding it before writing is essential; otherwise the file will not be a valid PNG.
Recommended Free Tools
Rank #2
- [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
- [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
- [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
- [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
- [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.
Capture only a region with clip
Use a clip when a full document is unnecessary or when you need a predictable rectangle. A clip contains an origin, width, height and scale. Coordinates are CSS pixels in the page’s layout; confirm the dimensions for your target page and device scale.
clip = {
"x": 0,
"y": 0,
"width": 1200,
"height": 800,
"scale": 1
}
result = driver.execute_cdp_cmd(
"Page.captureScreenshot",
{
"format": "png",
"captureBeyondViewport": True,
"clip": clip
}
)
A clip is not a substitute for discovering a document’s actual height. It deliberately limits the image to the rectangle you specify. For a complete page, omit it or calculate a page-specific rectangle after inspecting the document.
Device scale, format and quality
- PNG: lossless and convenient for visual tests; it can be large.
- JPEG: smaller for photographic pages, with lossy compression. Supply a quality value if your binding and protocol version support it.
- Scale: a higher device scale can improve sharpness but increases memory use and output size.
- Viewport: set a deliberate window size before navigation. Responsive layouts can otherwise produce different content and wrapping between runs.
Make lazy and dynamic content settle before capture
“Full page” describes the image bounds, not whether every application has finished rendering. Lazy images, infinite lists, ads and client-side components may load only after scrolling or after a framework-specific condition. There is no universal Selenium wait that guarantees all such content is ready.
Use an explicit application condition
Prefer a stable selector or JavaScript flag owned by the page. Selenium’s explicit waits avoid an arbitrary sleep when possible.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Rank #3
- 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
- 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
- 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
- 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
- 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
wait = WebDriverWait(driver, 30)
wait.until(lambda d: d.execute_script("return document.readyState") == "complete")
wait.until(lambda d: d.find_element(By.CSS_SELECTOR, "main[data-rendered='true']"))
Replace the selector with one that represents completion in your application. If no reliable signal exists, a bounded delay is a fallback, not proof that every resource has loaded.
Trigger lazy loading deliberately
Some pages load images only when an element approaches the viewport. A controlled scroll sequence can trigger those observers, followed by a final wait. This is page-specific: scrolling may change sticky headers, fire analytics, or load an infinite feed whose length never stabilizes.
# Example only: use a bounded number of steps for pages with lazy content.
for position in range(0, 12000, 800):
driver.execute_script("window.scrollTo(0, arguments[0]);", position)
# Replace with an explicit image/network condition when available.
# Return to the top if the visual baseline should begin there.
driver.execute_script("window.scrollTo(0, 0);")
Do not claim that this loop loads every asset on every site. Stop when your page’s own completion condition is true, or cap the work to protect CI time and memory.
Printing to PDF instead of making an image
If the deliverable is a document for printing or archiving, use Selenium’s page-printing operation in headless Chromium. Printing applies pagination, paper size and print CSS; it is not equivalent to a single tall bitmap. Keep separate code paths and validate page breaks, margins and background colors for your target document.
Free tools Windows power users keep installed
One-click scans. No signup required.
Common failures and fixes
The image contains only the visible viewport
Cause: the normal WebDriver endpoint returned its best-effort result, or the CDP flag was omitted. Fix: use Page.captureScreenshot with captureBeyondViewport: true, and verify that your Selenium binding accepts the command.
Rank #4
- 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
- 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
- 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
- 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
- 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.
unknown command or an invalid-parameter error
Cause: a Chrome/Selenium/CDP version mismatch, a renamed generated method, or a parameter unsupported by that protocol version. Fix: record the versions, consult the matching Selenium API and Chrome DevTools Protocol reference, and isolate the CDP call so the rest of the test remains portable.
The output file cannot be opened
Cause: the base64 string was written directly, truncated, or decoded into the wrong extension. Fix: decode result["data"] with a base64 decoder and use an extension matching the requested format.
Images or sections are missing
Cause: lazy loading or client-side rendering had not completed. Fix: wait for an application-specific selector or state, trigger lazy loading when appropriate, and capture only after the page reaches that state.
Memory or timeout failures on very long pages
Cause: a tall raster image can require substantial memory, especially with a high device scale or large viewport. Fix: reduce scale, capture intentional clips, split a long document into sections, or produce a paginated PDF instead. Keep an explicit timeout and save browser logs so CI failures are diagnosable.
Best Value
- AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
- Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
- Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
- Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
- Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions
The screenshot differs between machines
Cause: responsive breakpoints, fonts, device scale, animations, time zones or asynchronous content differ. Fix: pin the Chrome/Selenium environment, set the viewport, disable or freeze animations when your application permits it, wait for deterministic state, and compare images with a tolerance appropriate to your test.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Reliability and maintenance checklist
- Pin or record Chrome and Selenium versions; update them together.
- Keep the CDP call in a Chrome-only module and provide a WebDriver fallback where practical.
- Set a deterministic viewport and output format.
- Wait for page-specific readiness rather than assuming
document.readyStatecovers client rendering. - Bound scrolling, delays and total capture time.
- Check the decoded file exists, has nonzero size and can be opened by your image tooling.
- For visual regression, retain the URL, viewport, browser version and capture timestamp with each artifact.
Or skip the browser setup
ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP or PDF, while its capture pipeline accepts cookie and consent banners before removing more than 60 known consent platforms, newsletter popups and chat widgets. Bot checks, blank pages, timeouts, failed loads and cache hits are not billed, and response headers identify the page verdict and billing result. Its MCP tools—take_screenshot, get_page_info and capture_pdf—let Claude, Cursor and other MCP clients capture pages without you maintaining Chrome.
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python
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)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
See the ScreenshotNeo documentation for the 63 capture options, including full-page lazy-image loading, CSS-selector element capture, dark mode, device presets, retina scale, PDF settings, custom CSS and JavaScript, click actions, hidden selectors, waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed links, asynchronous webhooks, bulk capture and usage data. Plans include 1,000 screenshots a month free with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account.
Frequently Asked Questions
Does Selenium’s standard screenshot method always capture the entire page?
No. Selenium documents it as best effort, preferring the entire page and falling back to the window or visible frame. Use Chrome CDP when beyond-viewport capture is a requirement.
What does captureBeyondViewport change?
It tells Chrome’s Page.captureScreenshot command to capture content outside the current viewport. The protocol default is false.
Can I use this CDP method with Firefox or Safari?
No. Page.captureScreenshot is a Chrome DevTools Protocol surface. A cross-browser implementation should use standards-based WebDriver features where available and verify current WebDriver BiDi support for the exact operation.
When should I create a PDF instead of a screenshot?
Choose PDF when print pagination, paper size and selectable document output matter. Choose a screenshot for a raster image used in visual review or page previews.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteQuick 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.

