What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To capture a nested chat history at its top in Playwright, set scrollTop to 0 on the element that actually scrolls, then take the screenshot. A nested panel is not necessarily controlled by the document’s scroll position.
Reset the chat history’s own scroll position
Replace the illustrative test ID below with a stable locator for the scrollable history element in your application. The code moves that element to its top and captures the element as it is currently displayed.
const history = page.getByTestId('chat-history');
await history.evaluate(el => { el.scrollTop = 0; });
await history.screenshot({ path: 'chat-top.png' });
Playwright’s input guide demonstrates changing a scrolling container’s own scrollTop through Locator.evaluate. See the Playwright input documentation and Locator API reference.
Make sure you have the right element
Inspect the chat page and identify the element whose scrollTop changes when you scroll the message history. Do not assume that document, the page, or an outer layout container owns the scroll. Prefer an application-provided test ID or a role-and-name locator that uniquely identifies the history region.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →#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
If you do not have a test ID, use the locator that matches your DOM. For example:
const history = page.locator('.chat-history');
await history.evaluate(el => { el.scrollTop = 0; });
await history.screenshot({ path: 'chat-top.png' });
The class selector is only an example. A selector that matches the wrong element can run without error and still leave the chat panel scrolled down.
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
Choose what to capture
Choose the screenshot method according to whether the chat history alone or its surrounding interface matters.
| Capture | Playwright code | What it shows |
|---|---|---|
| Page viewport | await page.screenshot({ path: 'chat-top.png' }); |
The currently visible browser page, including surrounding UI. |
| Chat-history element | await history.screenshot({ path: 'chat-history.png' }); |
The selected element at its current scroll position. |
| Full page | await page.screenshot({ path: 'page.png', fullPage: true }); |
The full scrollable page, not necessarily the full contents of a separately scrolling chat panel. |
Playwright describes fullPage: true as capturing the full scrollable page. It does not mean that an independently scrolling inner panel is automatically reset or expanded. See Playwright screenshots documentation.
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.
When to use wheel scrolling instead
Direct assignment to scrollTop is concise for a normal scroll container. If the application responds to wheel events or loads messages as the user scrolls, use Playwright’s mouse wheel input and wait for the application’s own loading signal before capturing.
const history = page.getByTestId('chat-history');
const box = await history.boundingBox();
if (!box) throw new Error('Chat history is not visible');
await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
await page.mouse.wheel(0, -800);
// Wait here for the app-specific signal that scrolling or loading is complete.
await history.screenshot({ path: 'chat-top.png' });
The wheel distance and the correct wait condition depend on the application. A single wheel event does not guarantee that the history reached its top. Playwright documents Mouse.wheel as a precise input option in its input guide.
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
Handle lazy-loaded or virtualized history
Some chat applications fetch older messages when the history reaches the top, or render only the messages currently near the viewport. In those cases, moving the scroll position to zero may trigger an update or may happen before the desired messages are present.
- Locate the actual scroll container and confirm its current
scrollTop. - Move it to the top using
scrollTop = 0, or use wheel input if the application relies on wheel handling. - Wait for the application’s specific loading indicator, message count, or other reliable completion signal.
- Check that the desired messages are present and the container remains at the top after the update.
- Capture the viewport or element that includes the evidence you need.
The loading trigger, virtualization behavior, and appropriate wait condition are application-specific; Playwright’s general API documentation cannot determine them for a particular chat implementation.
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.
Troubleshooting
- The screenshot still shows the bottom of the conversation: Verify that your locator targets the element whose
scrollTopchanges during manual scrolling. The document and chat panel may scroll independently. - The screenshot is correct but older messages are missing: The app may load history on reaching the top or virtualize off-screen messages. Wait for its loading signal and confirm the messages are rendered before capturing.
- The wheel event appears to do nothing: Ensure the pointer is over the chat panel and that it is visible and able to scroll. Wheel input follows the page’s event handling; use direct
scrollTopassignment when the element is a standard scroll container. - The element screenshot cuts off the desired content: A locator screenshot captures the selected element’s visible area at its current scroll position. It is not a request to expand the inner panel to all its scrollable content.
- The full-page screenshot does not show the whole chat history:
fullPage: truecovers the page’s scrollable area, not necessarily an independently scrolling nested panel. Control the panel separately or capture the desired visible state.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. Its one-request API is useful when you need a page capture without building and managing a Playwright browser setup:
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 parameters and setup. ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. 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 get 1,000 screenshots a month with no card.
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.
Free tools Windows power users keep installed
One-click scans. No signup required.

