What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use page.screenshot({ fullPage: true, style: '...' }) to capture the whole scrollable page while applying CSS only for the screenshot. For a visual-regression test, use Playwright Test’s toHaveScreenshot({ fullPage: true, stylePath: './screenshot.css' }) instead. The direct screenshot option takes CSS text; the test assertion option takes a stylesheet path.
Capture a full page with inline CSS
In a Playwright script, pass fullPage: true to capture beyond the current viewport. Add CSS in the style option to temporarily change what appears in the screenshot, for example to hide a volatile iframe:
const buffer = await page.screenshot({
path: 'full.png',
fullPage: true,
style: 'iframe { visibility: hidden; }'
});
page.screenshot() returns the image buffer; path is optional and saves the image to a file. The CSS is a string containing stylesheet text, not a filename. Playwright applies screenshot styling for the capture rather than changing the page’s lasting styles. Hiding content changes what the image depicts, so use selectors that match the purpose of the capture.
Use a stylesheet file in a Playwright Test assertion
If the goal is visual regression testing, use the Playwright Test assertion API. Put the temporary rules in a CSS file, then pass its path as stylePath:
Free tools Windows power users keep installed
One-click scans. No signup required.
#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
import { test, expect } from '@playwright/test';
test('page screenshot matches its baseline', async ({ page }) => {
await page.goto('https://example.com');
await expect(page).toHaveScreenshot({
fullPage: true,
stylePath: './screenshot.css'
});
});
For example, screenshot.css could contain:
iframe {
visibility: hidden;
}
toHaveScreenshot() is provided by Playwright Test; it is not interchangeable with the direct page.screenshot() call. The assertion captures and compares against a stored expectation, retrying until two consecutive screenshots match. That helps with transient rendering, but does not guarantee pixel-identical images across different environments.
Choose the right screenshot method and style option
| Need | Use | What the option means |
|---|---|---|
| Save or use an image from a one-off capture | page.screenshot() |
style is CSS text; fullPage: true captures the scrollable page. |
| Compare a screenshot with a visual-regression baseline | Playwright Test’s toHaveScreenshot() |
stylePath is a CSS file path; use fullPage: true for the full page. |
| Capture only a particular element | A locator or element screenshot method | Targets the element area rather than the whole scrollable document. |
The screenshot style and assertion stylePath options are documented as added in Playwright v1.41. If a project uses an older release, check its installed-version API documentation before relying on them. The referenced Playwright documentation is rolling, and its Screenshots guide is the Next-version guide.
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
Make visual-regression screenshots more repeatable
A screenshot can change even when the page code has not: Playwright’s guidance identifies operating system, browser version, settings, hardware, power source, and headless mode as factors. Run baseline creation and comparison in aligned environments when pixel-level consistency matters.
Screenshot-time CSS can hide known dynamic regions, but it should not conceal changes the test is meant to detect. Playwright Test also provides assertion controls for animation handling, caret behavior, masks, scale, and pixel-difference tolerances. Set them according to the visual behavior you intend to test rather than loosening comparisons indiscriminately. The assertion’s consecutive-capture stabilization does not remove differences caused by mismatched environments.
Crashes, 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 minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Rank #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.
Troubleshooting
- The CSS file is not being applied. Check that you are using
stylePathwithtoHaveScreenshot(), and that the path resolves from the test’s working context. Forpage.screenshot(), pass the CSS contents usingstyleinstead of passing a filename. - The page is cut off at the viewport. Confirm that the call includes
fullPage: true. Without it, the capture is not explicitly requested as a full scrollable-page screenshot. - The CSS works in a direct capture but not in a test assertion. These are separate APIs and take different values: inline CSS text for
style, file path forstylePath. - A screenshot assertion differs across machines. Align operating system, browser version, browser settings, hardware, power source, and headless mode between baseline creation and comparison before changing tolerances.
- The captured image omits content unexpectedly. Inspect the temporary stylesheet’s selectors and remove or narrow rules that hide content the capture should include.
- The option is rejected or unavailable. Verify the project’s Playwright version; these style options are marked as introduced in v1.41.
Or skip the browser setup
If you need a screenshot from a URL without setting up Playwright, ScreenshotNeo provides a screenshot API and MCP server. A single GET request can return an image or PDF. For example, using the API’s documented cURL form (see 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
ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
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
Frequently Asked Questions
Can I pass a CSS filename to `page.screenshot()`?
No. Its `style` option takes stylesheet text. Use `stylePath` with a stylesheet file in a Playwright Test `toHaveScreenshot()` assertion.
Does `fullPage: true` capture one element?
No. It captures the scrollable page. Use a locator or element screenshot method when the target is just one element.
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.
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.

