Dismiss the cookie banner before you capture the page. For a one-off splash screenshot, use a private browser window, make an explicit accept, reject, or close choice, wait for the banner and dimming layer to disappear, and then capture. For repeatable jobs, automate that interaction or use a consent-blocking option and tested selectors. If the banner is already baked into an image, crop only when the edge can be removed honestly; otherwise recapture from a clean browser state.
Choose the right removal method
“Removing” a cookie banner can mean two different things: recording a real consent decision, or merely hiding pixels so the page looks clean. Those outcomes are not interchangeable. A visual-regression run may need a stable, unobstructed render; compliance evidence may need the untouched page and proof that the consent control worked.
| Method | Records consent? | Best use | Main limitation |
|---|---|---|---|
| Private-browser dismissal | Yes, if you click a real control | One-off documentation or debugging | Manual and difficult to scale |
| Automated click or consent blocker | Only if it performs a real interaction | Scheduled screenshots and visual checks | Selectors and vendor implementations change |
| CSS/selector hiding | No | Cosmetic visual tests where consent behavior is tested separately | Can leave a dimming overlay or mask a real layout problem |
| Crop or retouch an existing image | No | When recapture is impossible and the banner is on an expendable edge | Edits must be disclosed; fabricated UI is not evidence |
Keep an unfiltered original whenever the screenshot may be used as QA evidence, a legal or compliance record, or a support artifact. A clean derivative can then be shared without losing the original state.
One-off capture in a browser
- Start a private session. Open the URL in an incognito or private window. Existing consent cookies can make a normal window appear clean even though a first-time visitor would see a banner.
- Wait for the first-visit state. Some consent managers render after JavaScript settles, after a short delay, or only after scrolling or another interaction. Do not capture immediately on first paint.
- Inspect the complete widget. Use DevTools to identify the outer banner wrapper, not just a text node or button. Note any separate backdrop or dark filter that dims the page.
- Make an explicit choice. Click the site’s accept, reject, or close control. A real choice is different from deleting the element with DevTools. If the site offers only “manage preferences,” complete the smallest choice that matches your test policy.
- Wait for removal. Confirm that both the panel and its dimming layer are gone, and that the page is no longer prevented from scrolling or receiving clicks.
- Capture and preserve. Take the splash screenshot only after the layout settles. Save the original, unfiltered capture separately if the image may be evidence.
For a banner that appears only after an interaction, reproduce that interaction before dismissal. Grafana k6’s guidance follows the same principle: trigger the banner deliberately, dismiss it early, and then continue the later steps.
Automate dismissal for repeatable screenshots
Try a built-in consent blocker first
Several screenshot services expose a consent-blocking switch. Browserless documents blockConsentModals=true for its screenshot endpoint. Allscreenshots documents cookie-banner blocking as enabled by default and provides blockCookieBanners: false when an unfiltered render is required. These options reduce per-site scripting, but they are not proof that every consent manager was handled. Verify one representative page from each domain.
Use a selector and click when automation misses
When a built-in blocker does not recognize a site, add a narrow, tested selector for the actual control or wrapper. Yodeck recommends trying its automatic option first; its documented manual template is pause(4) click("""SELECTOR"""). Replace the placeholder with a selector for the consent action, then wait for the overlay to vanish before taking the screenshot.
For visual regression, Sitepager’s approach is to put the banner selector in Dynamic Content Selectors, test one page, and only then scale the scan. Target the parent wrapper rather than a child label. If the page remains grey, add the backdrop as a second selector; one documented example uses #onetrust-banner-sdk, .onetrust-pc-dark-filter.
Wait for a settled page
Run the consent logic after a page-settling condition such as network idle, a known content selector, or a bounded delay. Network idle alone is not sufficient on sites with long-polling or advertising requests, so combine it with a maximum wait and a positive check that the banner is absent.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Keep the interaction test separate
A CSS rule that sets display:none, a screenshot-service blocker, or a hidden selector changes the pixels but does not create a consent record. If your purpose includes testing the accept or reject button, run a separate, narrow interaction test that verifies the click, the resulting cookie or storage value, and the disappearance of the modal.
Iframe, shadow DOM, and overlay edge cases
Cross-origin iframes
Consent platforms often place their controls in an iframe. A top-level document.querySelector or page-level click can therefore miss the button. Locate the frame first, then use a frame-aware locator and identify the control by its accessible role or label. Do not assume that removing an iframe element from the parent document changes the frame’s internal state.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Shadow DOM
Some widgets render inside an open or closed shadow root. Open roots can be traversed with shadow-aware locators; closed roots generally require the vendor’s supported API or a visual blocker. Record which path you used because a selector that works in one implementation may fail after a consent-platform update.
Backdrop left behind
The panel and its backdrop are frequently separate nodes. If the page content is visible but greyed out, inspect for a fixed overlay with a high z-index and include that selector in the cleanup. Also check that the overlay is not intentionally part of the page’s splash design.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Late or interaction-triggered banners
Scroll-triggered and delayed banners can appear after an apparently successful capture. Exercise the interaction that causes them, wait through the configured delay, and perform the dismissal before the final screenshot. For a long page, test both the top and a scrolled position if your capture process changes scroll state.
When the screenshot already contains the banner
Crop only an expendable edge
If the banner occupies a bottom or side strip and cropping it does not remove meaningful page content, crop the image. State that the image was cropped. Do not crop away a banner that overlaps the subject you are documenting.
Retouch only with disclosure
Clone, heal, or content-aware tools can remove visible pixels, but they can also invent interface text or layout. Label the result as edited and retain the untouched source. For documentation, QA evidence, or legal/compliance records, a fresh capture from a clean browser state is preferable.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the result with X-Page-Verdict and X-Billed headers.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsIt also supports full-page captures with lazy images loaded, CSS-selector element shots, dark mode, 12 device presets plus custom viewports, retina scale, PDF output, custom CSS and JavaScript, pre-capture clicks, hidden selectors, selector/delay/network-idle waits, request and resource blocking, headers, cookies, user agents, Authorization, timezone and geolocation, transparent backgrounds, resizing, configurable-TTL caching, signed image links, asynchronous jobs with signed webhooks, bulk capture for 100 URLs per call, a usage API, an OpenAPI specification, and familiar parameter names used by other screenshot APIs.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Here is a direct cURL request (see the ScreenshotNeo documentation for all options):
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}`);
The MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients, so an AI agent can perform the capture without you building browser setup code.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Plans include 1,000 screenshots per month free with no card, Starter at $5 for 3,000, Growth at $15 for 15,000, Pro at $39 for 60,000, Scale at $99 for 250,000, and Business at $249 for 1,000,000. Yearly billing gives two months free, and every feature is available on every plan. Create a free ScreenshotNeo account to start with the 1,000 monthly shots.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Troubleshooting checklist
- The banner is still visible: wait for delayed rendering, trigger the required scroll or click, and target the outer wrapper instead of a child element.
- The page is still grey: locate and remove the separate backdrop or dark-filter selector.
- The click does nothing: check whether the control is inside an iframe or shadow root and switch to a frame- or shadow-aware locator.
- The screenshot is clean but consent was not recorded: you hid pixels rather than performing a real interaction; run a separate accept/reject test.
- The banner returns on every run: use a deliberate private-session policy, persist the intended consent state where appropriate, or accept that first-visit screenshots should include the banner.
- The result changes between runs: standardize viewport, device scale, timezone, geolocation, cookies, user agent, wait condition, and resource blocking. Keep an original capture for comparison.
- A blocker removes page content: narrow the selector, test on one URL, and verify that the selected wrapper is the consent widget rather than a similarly named application component.
Performance, reliability, and cost decisions
For a handful of pages, private-browser dismissal is usually fastest to inspect and easiest to explain. At scale, automation removes manual work but introduces maintenance: consent vendors change markup, overlays, iframe boundaries, and timing. A built-in blocker is cheaper to maintain than per-domain selectors, while a tested selector gives more control over unusual implementations.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Use bounded waits rather than an unlimited network-idle condition, and capture one page from each template before expanding a job. Preserve both the filtered result and, where evidence matters, the unfiltered original. With ScreenshotNeo, failed loads, bot checks, blank pages, timeouts, and cache hits are not billed, which makes retries less risky; inspect the verdict and billing headers instead of inferring success from an HTTP response alone.
FAQ
Does hiding a cookie banner satisfy privacy requirements?
No. Hiding pixels changes the screenshot, not the site’s consent state. Use an actual accept or reject interaction when your test must demonstrate consent behavior.
Should I always reject cookies for a clean screenshot?
Not necessarily. Choose the action that matches the scenario you are documenting. The important distinction is that the choice is explicit and recorded by the page, rather than simulated by CSS.
Why keep a screenshot with the banner if the final image must be clean?
The untouched image preserves what a first-time visitor saw and lets reviewers distinguish a clean derivative from an edited or filtered capture.
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.

