Choose the fix based on what the screenshot needs to prove. If you only need a clear image, hide the site-specific banner with screenshot-only CSS. If the image must show the page after a real consent choice, click the intended control—such as Reject or Accept—then verify the banner is gone before capturing. Hiding a banner changes the image, not the site’s consent state.
Choose between hiding the banner and making a consent choice
A cookie notice covering page content can be handled in two different ways, and they produce different evidence:
| Need | Method | What the screenshot establishes |
|---|---|---|
| A clean visual capture only | Hide the inspected banner with CSS applied to the screenshot. | The banner was omitted from the image. It does not establish that consent was saved or that a choice was made. |
| A capture of a real consent state | Click the specific intended consent control, wait for the interface to settle, and verify the result. | The page after that interaction, subject to the site’s own behavior and persistence. |
Do not click Accept just to clear the image if the intended state is rejection or no choice. For compliance, consent testing, or evidence of user experience, record the actual interaction rather than disguising the banner.
Hide a specific banner in a Playwright screenshot
For visual-only captures, inspect the target page in browser developer tools and identify the narrowest stable selector for the banner. Playwright’s screenshot style option applies CSS for the capture; its documentation describes using it to hide dynamic elements or adjust properties for repeatable screenshots. The stylesheet pierces Shadow DOM and applies to inner frames.
await page.screenshot({
path: 'page.png',
fullPage: true,
style: '#site-specific-consent-banner { display: none !important; }'
});
Replace #site-specific-consent-banner with a selector you confirmed on the site. This is a conceptual snippet within an existing Playwright script: page must already refer to the page you navigated to. If the notice has a separate dimming backdrop, inspect and hide that specific element too. Avoid broad rules such as [class*="cookie"] or [class*="overlay"] unless inspection confirms they match only the banner; they may hide unrelated content.
After capturing, inspect the image at its intended size. Confirm that the page content is unobstructed, no backdrop remains, and unrelated elements were not removed. The result is a presentation-only image, not proof that the site stored a consent preference.
As an Amazon Associate I earn from qualifying purchases.
Capture a real consent choice in a test
When the screenshot must reflect a user decision, locate and activate the exact control for the intended choice. Then wait for the banner to disappear or the page to settle, and assert the expected post-interaction state before taking the image.
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 reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchconst rejectButton = page.getByRole('button', { name: 'Reject' });
await rejectButton.click();
await expect(page.locator('#site-specific-consent-banner')).toBeHidden();
await page.screenshot({ path: 'after-reject.png', fullPage: true });
This example assumes the site has a button whose accessible name is “Reject” and that the inspected banner selector is correct; adapt both to the target page. If the site presents its choice in another way, use that actual control and assert the resulting state. A hidden banner alone may not prove which option was selected.
Playwright documentation recommends explicitly waiting for and dismissing a predictable overlay in the normal test flow rather than relying on page.addLocatorHandler(). Locator handlers can be useful for unexpected overlays, but they run before actions or assertions that need actionability checks and can alter focus and mouse state. Keep subsequent actions self-contained and verify the intended outcome.
Choose full-page or element capture for the evidence you need
A full-page screenshot captures the scrollable page as if it fit on a very tall screen. An element screenshot captures a specific element. These options change the capture area; they do not accept or hide a cookie notice. Use full-page capture for a page-wide record, or target an element when that component is the evidence you need. If a banner appears only in the viewport or overlaps the target element, check the actual output rather than assuming the capture mode resolves it.
Use a hosted screenshot service when you need repeat captures
For repeated work, a hosted service can avoid maintaining your own browser setup, but automatic banner handling is not automatically equivalent to screenshot-only hiding. Browserless documents a screenshot endpoint option named blockConsentModals=true, says it covers most major consent platforms, and points to custom selectors when its built-in blocker misses a site: Browserless consent-modal guidance. Its maintained Playwright example tries a short list of common selectors, checks visibility, clicks a matching control, and then captures a full-page screenshot: Browserless Playwright example. Because clicking is a real interaction, check which choice is made and whether that suits your test before using the result as evidence of a particular consent state.
Or skip the browser setup
ScreenshotNeo can return a screenshot or PDF with one GET request. For example, this cURL request captures a page as WebP:
#1 Best Overall
- 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
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for the request options. ScreenshotNeo accepts cookie/consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. It bills only clean shots: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses include X-Page-Verdict and X-Billed headers. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and other MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month without a card.
Quick Recap
Best Value
- 【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.
Rank #4
- 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
Rank #3
- 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.
Rank #2
- 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
Troubleshoot a banner that still appears or a page that looks wrong
- The banner remains in a CSS-only screenshot: Reinspect the live page and confirm the selector matches the visible banner. A different component may render the actual notice, or a separate backdrop may still cover the page.
- Unrelated content disappears: Narrow the CSS selector. Broad class-substring rules can match elements beyond the consent interface.
- The screenshot is clean, but the test says nothing about consent: That is expected for screenshot-time CSS. Use the intended consent control and assert the resulting state if the interaction matters.
- A click-based test is inconsistent: Wait for the predictable overlay in the normal flow, use a locator for the intended control, and verify the banner’s post-click state. If using a locator handler for an unexpected overlay, account for possible focus or mouse-state changes.
- A hosted blocker misses a site: Coverage is not universal. Browserless documents custom selectors as a fallback; inspect the target site and verify the interaction and output.
- A full-page or element capture still includes the overlay: Capture scope does not change overlay behavior. Decide whether to hide the specific element for a visual-only image or interact with it for a consent-state capture.
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.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.




