Free tools Windows power users keep installed
One-click scans. No signup required.
To screenshot a page that contains Shadow DOM, let Puppeteer render the page normally and use page.screenshot(). You only need Shadow DOM selectors when you must inspect or change a component before the capture. For an element inside an open shadow root, use Puppeteer’s deep combinators: >>> searches at any depth and >>>> searches the host’s immediate shadow root.
How do I take a screenshot of a page containing Shadow DOM?
Shadow DOM does not require a special screenshot API. Puppeteer captures the browser’s rendered output, including visible shadow-root content, with page.screenshot(). The extra work is selecting or manipulating a node inside the component before capture. Ordinary CSS selectors stop at a shadow boundary, so use Puppeteer’s deep selector syntax only when you need that access.
The roots must be open. A closed root intentionally hides its internal nodes from page JavaScript; you can still capture the component’s visible appearance, but you cannot assume that Puppeteer can find or click an internal button.
A complete Puppeteer example
Install and launch
Install Puppeteer in a Node.js project, then run a script using its standard browser API:
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →#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
npm install puppeteer
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle2' });
// Find a button anywhere inside open shadow roots and trigger its state.
await page.locator('my-widget >>> button').click();
// Capture the rendered page after the interaction.
await page.screenshot({ path: 'page.png', fullPage: true });
await browser.close();
Replace my-widget and button with the real host and target selectors. The screenshot is taken after the click, so the image reflects the resulting component state. If no interaction is needed, remove the locator line; the screenshot will still include whatever the component rendered.
Use the deep combinators correctly
| Selector | Use it when | Search scope |
|---|---|---|
host >>> target |
The target may be nested through multiple open shadow roots | Any depth beneath the host |
host >>>> target |
The target is directly in the host’s shadow root | Immediate shadow root only |
Regular CSS, such as host button |
The target is in the light DOM | Does not cross a shadow boundary |
Deep combinators apply to the first depth of a selector. Do not expect them to work when buried inside a complex CSS construct such as :is(...). Keep the host and internal target as explicit selector segments.
Wait for a component that renders later
Web components often attach their shadow root after JavaScript runs. Puppeteer’s locator API waits for an element to be present and ready for an action, making it a good default for clicks and other interactions:
await page.locator('checkout-panel >>> button.submit').click();
If you use lower-level selector APIs, add your own readiness checks. Waiting for the host alone may not be enough when the internal node is created later; wait for the deep target or for the application state that causes it to appear.
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.
Read a value before taking the shot
page.$eval(selector, pageFunction) passes the matched element into a function evaluated in the page context. This is useful for checking text, attributes or a property before you capture:
const status = await page.$eval(
'status-card >>> .message',
element => element.textContent?.trim()
);
console.log(status);
await page.screenshot({ path: 'status.png' });
The selector still obeys the same open-root boundary. A missing match is not evidence that the component is empty; it may mean that the root is closed or that rendering has not finished.
Choose the screenshot region and output
page.screenshot() captures the current viewport by default. Select options based on what the image is meant to show:
| Option | Result | Typical use |
|---|---|---|
| No size option | Current viewport | What a user sees without scrolling |
fullPage: true |
Entire rendered page height | Long pages and complete reports |
clip: { x, y, width, height } |
A rectangular page region | Focus on a component or panel |
path: 'file.png' |
Saves the image to that file | Persisting a PNG, JPEG or WebP (the extension determines the type) |
omitBackground: true |
Transparent background where supported | Overlaying a component on another design |
quality |
Controls lossy formats | JPEG/WebP size reduction; it does not apply to PNG |
For a shadow component’s bounding box, first obtain its host’s rectangle in the page context, then pass those coordinates to clip:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
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.
const box = await page.$eval('my-widget', element => {
const r = element.getBoundingClientRect();
return { x: r.x, y: r.y, width: r.width, height: r.height };
});
await page.screenshot({ path: 'widget.png', clip: box });
This clips the host’s rendered region; it does not make a closed root inspectable.
Open versus closed shadow roots
Open roots
An open root exposes its ShadowRoot through the host’s shadowRoot property. Puppeteer’s >>> and >>>> selectors can cross that boundary, subject to normal rendering and timing conditions.
Closed roots
For a closed root, the host’s shadowRoot property is null. The internal implementation is deliberately not exposed to page JavaScript, so a failed deep query is expected rather than a selector typo. If you own the component, expose a public method or event for the state you need to set, or create the root as open when test automation must reach internal controls. If you do not own it, avoid depending on hidden nodes and capture the rendered page or host region instead.
Interactions, state and timing
- Navigate and wait for the page. Use an appropriate
waitUntilvalue inpage.goto(); network idle does not guarantee that a component’s own asynchronous data request has finished. - Wait for the component’s target. A locator for
host >>> targetcan wait while the shadow tree is attached and the target becomes actionable. - Set the visual state. Click tabs, open menus, dismiss a dialog or fill a control before capture. Shadow DOM changes are reflected in the rendered image once the browser paints them.
- Allow state-dependent resources to finish. If an image or chart appears after the click, wait for its selector, a short deliberate delay, or an application-specific readiness signal.
- Capture only after the final state is stable. Taking the screenshot immediately after an interaction can catch an animation or an intermediate loading state.
Troubleshooting deep selectors and screenshots
- No element found: Verify the host selector, confirm the custom element has rendered, and check that the target is actually inside an open root. Inspecting the page source will not reveal nodes generated after load; inspect the live DOM instead.
- The host exists but the target is late: Wait for the deep target or the event that signals component readiness. A fixed delay is less reliable than a state-based wait, but can be useful for a third-party widget with no exposed signal.
>>>works but>>>>does not: The target is probably nested below another shadow host. Use the any-depth combinator.- Both combinators fail: The root may be closed, the component may be inside an iframe, or the selector may be embedded in an unsupported complex CSS expression. Handle the iframe separately and simplify the deep selector.
- The screenshot is blank or incomplete: Confirm navigation succeeded, wait for the content that supplies the component’s data, and check for an overlay or loading screen covering the viewport. Use
fullPageonly after verifying the page itself has the expected height. - The image includes an unwanted animation frame: Pause or wait for the animation before calling
screenshot(); otherwise Puppeteer captures whichever frame is currently painted. - Transparency is missing: Use
omitBackground: trueand a format that preserves the intended alpha channel. A normal opaque page background will remain opaque.
Performance and reliability considerations
Launching a browser is usually more expensive than taking another shot in an existing page. Reuse one browser process and, where isolation permits, reuse a page for a series of captures. Set a navigation timeout appropriate to the site, close pages that are no longer needed, and always close the browser in cleanup code so failed captures do not leave Chromium processes running.
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.
Full-page captures require layout and rasterization for the complete document and can use considerably more memory than a viewport or clipped region. A clip is preferable when you need only one component. Selecting an element inside an open root does not itself make the screenshot slower; the cost comes from loading the page, waiting for its state and rendering the requested area.
page.screenshot() returns a Uint8Array by default when no path is supplied. Configure base64 encoding when a string is more convenient, or provide path to write directly to disk. Keep the screenshot call after all selectors, interactions and waits so a transient shadow-tree state is not mistaken for the final result.
Or skip the browser setup
ScreenshotNeo provides a single-request website screenshot API when you do not want to maintain Puppeteer, Chromium and shadow-component timing code. It captures the rendered page, while its cleanup steps remove cookie or consent banners, newsletter popups and chat widgets before the shot. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed; the response identifies the result with X-Page-Verdict and X-Billed headers.
See the ScreenshotNeo API documentation for all parameters. A direct request looks like this:
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →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}`);
const data = new Uint8Array(await res.arrayBuffer());
ScreenshotNeo also offers full-page and element captures, custom JavaScript and CSS, clicks, waits, blocked resources, cookies and headers, device and viewport controls, PDF output, caching, signed links, asynchronous jobs, bulk capture and an MCP server with take_screenshot, get_page_info and capture_pdf tools for AI clients such as Claude or Cursor.
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
| 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 |
Yearly billing gives two months free, and every feature is available on every plan. Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.
FAQ
Will a screenshot include shadow-root styles?
Yes, if those styles are applied in the rendered page at capture time. The screenshot records pixels, not a serialized light-DOM tree, so visible shadow content and its styling appear without exposing the root to your script.
Can I use a deep selector to cross an iframe and a shadow root?
No. An iframe is a separate document. Enter its frame first, then run the appropriate selector inside that frame; the deep combinators only address shadow boundaries within the current document.
Recommended Free Tools
What is the safest fallback for a closed component?
Use the component’s documented public controls or capture the host/page after setting state through those controls. Do not build automation around private internal nodes that the component intentionally keeps inaccessible.
Frequently Asked Questions
Will a screenshot include shadow-root styles?
Yes, if those styles are applied in the rendered page at capture time. The screenshot records pixels, not a serialized light-DOM tree, so visible shadow content and its styling appear without exposing the root to your script.
Can I use a deep selector to cross an iframe and a shadow root?
No. An iframe is a separate document. Enter its frame first, then run the appropriate selector inside that frame; the deep combinators only address shadow boundaries within the current document.
What is the safest fallback for a closed component?
Use the component’s documented public controls or capture the host/page after setting state through those controls. Do not build automation around private internal nodes that the component intentionally keeps inaccessible.
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.

