Use Playwright’s page.screenshot() for the visible browser viewport or set fullPage: true to capture the whole scrollable page. To capture only a product image or details block, inspect the specific Magento storefront’s markup and take a screenshot of a matching locator. Magento themes and selectors vary, so there is no universal product-page selector.
Set up Playwright and open the product page
Install Playwright in a Node.js project, then install its Chromium browser. The example below is illustrative: replace the URL with a product page you are authorized to access. Its selector is deliberately a placeholder because Magento storefront markup varies.
As an Amazon Associate I earn from qualifying purchases.
npm install playwright
npx playwright install chromium
Save the following as screenshot-product.js and run it with node screenshot-product.js:
Free tools Windows power users keep installed
One-click scans. No signup required.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const page = await browser.newPage({ viewport: { width: 1440, height: 1000 } });
await page.goto('https://store.example/product-url', { waitUntil: 'load' });
// The visible viewport
await page.screenshot({ path: 'product-viewport.png' });
// The complete scrollable page
await page.screenshot({ path: 'product-full.png', fullPage: true });
// Replace this with a selector found on this storefront
await page.locator('YOUR_PRODUCT_SELECTOR').screenshot({ path: 'product-detail.png' });
} finally {
await browser.close();
}
})();
Playwright’s screenshots guide and Page API document these capture methods. Check the documentation for the Playwright version installed in your project, since API options may change.
#1 Best Overall
- Compatible with Nintendo Switch 2’s new GameChat mode
- Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
- Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
- Built-In Mic: The built-in microphone lets others hear you clearly during video calls
- Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
Choose the screenshot scope
| Need | Playwright method | What it captures |
|---|---|---|
| What is currently visible | page.screenshot({ path: 'product.png' }) |
The current viewport; this is the default. |
| Everything down the page | page.screenshot({ path: 'product.png', fullPage: true }) |
The full scrollable page, as if it were a very tall screen. |
| One product image or details area | page.locator('...').screenshot({ path: 'product.png' }) |
The matching element. Playwright scrolls it into view; for a scrollable element, the capture shows only its currently scrolled content. |
| Image data for further processing | const image = await page.screenshot() |
Image bytes returned in memory rather than written to a file. |
For full-page capture, use the page method rather than assuming that a locator screenshot will include content outside the matched element. The Locator API describes element screenshots and locator behavior.
Find a selector that matches this Magento storefront
Do not copy a product selector from another store and assume it applies. Inspect the actual rendered page in your browser’s developer tools, identify the element you need, and use a selector that is specific enough to match the intended image or content block. Then verify that the locator matches the intended element before saving the screenshot.
Rank #2
- Compatible with Nintendo Switch 2’s new GameChat mode
- Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
- The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
- C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
- The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
For example, replace YOUR_PRODUCT_SELECTOR with a CSS selector observed on the page:
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →const productImage = page.locator('your-observed-selector');
await productImage.screenshot({ path: 'product-image.png' });
The text your-observed-selector is not a real Magento selector. A theme may change its markup, and the available documentation does not establish a common Magento class name or page structure.
Rank #3
- 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
- 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
- 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
Control output and visual consistency
The Page screenshot API includes options for image format, quality for applicable formats, clipping, scale, masking, and animation handling, as well as file output and full-page capture. Choose options deliberately, and confirm they are available in your installed Playwright version.
- Viewport: Set a deliberate viewport when comparing captures so the visible layout has consistent dimensions.
- Scale: Select an intentional scale when output size or pixel density matters.
- Clip: Use a clip region when a fixed portion of the page is needed instead of the whole viewport.
- Mask: Mask dynamic elements that would otherwise make visual comparisons noisy.
- Animations: Consider disabling animations for repeatable visual checks.
- Format: Select a supported format and, where applicable, quality appropriate to the image’s use.
A screenshot records the page’s rendered state when capture occurs. There is no universal readiness event established for Magento product imagery: a page load event alone may not prove that a particular store’s image or dynamic content has finished rendering.
Rank #4
- 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
- Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
- Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
- Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
- High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
Wait for the content your capture depends on
If a product image or details panel is missing, identify an observable condition on that storefront and wait for it before taking the screenshot. A locator wait is one option once you have a real selector:
Outdated 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 matchWindows 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 reinstallconst productImage = page.locator('your-observed-selector');
await productImage.waitFor({ state: 'visible' });
await productImage.screenshot({ path: 'product-image.png' });
Use a selector that corresponds to the actual content you need. Do not treat a generic network or navigation condition as proof that every image, lazy-loaded section, or store-specific widget is ready.
Best Value
- Compatible with Nintendo Switch 2’s new GameChat mode
- HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
- Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
- Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
- Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
Use screenshot bytes instead of saving a file
Omit path to receive the screenshot as a buffer, which can be passed to image-processing or storage code:
const imageBuffer = await page.screenshot({ fullPage: true });
// Pass imageBuffer to the storage or image-processing code used by your application.
The returned buffer is useful when your workflow should process or upload the image without first writing a local screenshot file.
Troubleshooting
- The locator times out or matches nothing: The selector may not exist on this theme, may be misspelled, or may not yet be present. Inspect the rendered page and choose a selector that matches the desired element; wait for it if the page adds it dynamically.
- The screenshot is blank or content is missing: Capture may have occurred before the relevant content rendered. Wait for the specific visible element or other page condition your use case requires, then capture again.
- The element screenshot cuts off content: Locator screenshots target the element, not the entire page. A scrollable element is captured at its current scroll position; use a page-level full-page screenshot if the goal is the full document.
- Captures differ between runs: Keep the viewport and scale fixed, use stable locators, and consider masking dynamic areas or handling animations.
- A screenshot option is rejected: Check the installed Playwright version against the current Page API documentation; do not assume every option described in current docs is available in an older installation.
Or skip the browser setup
ScreenshotNeo can return a screenshot or PDF from one GET request. Its documentation lists the available request options. For example, save a WebP capture of the product page:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://store.example/product-url -o product.webp
ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.
Learn about ScreenshotNeo, or sign up free for 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.




