Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Adobe Commerce

How to Screenshot Product Prices on Magento Sites with Puppeteer

By Freedom251 Team · · 6 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Puppeteer to open the product page, wait until the intended price is visible, then capture either the full page with page.screenshot() or the price element with ElementHandle.screenshot(). Magento does not have one universal price selector: inspect the target store’s rendered markup, and for configurable or other complex products capture only after the relevant options and price state are clear.

Choose what the screenshot needs to prove

A price image can preserve the surrounding product context or focus tightly on the amount. Choose the capture method before writing the script:

As an Amazon Associate I earn from qualifying purchases.

Method Use it when Consider
page.screenshot() You need the product title, selected options, currency, and price together. Use fullPage: true if the relevant content extends beyond the viewport; otherwise a viewport screenshot may be clearer.
ElementHandle.screenshot() You need a focused image of the price element. Puppeteer scrolls the element into view. The handle must still refer to an attached element; reacquire it after a page re-render.
clip with a page screenshot You need a specific rectangular region of the page. Coordinates must match the rendered page layout, so a changed viewport or layout can shift the region.

Puppeteer documents page captures with Page.screenshot() and element captures with ElementHandle.screenshot(). Screenshot options include path to save a file, type to select an image format, fullPage for the full page, and clip for a bounded region; see the ScreenshotOptions API.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check which product price state is on screen

Simple products

A simple product can have a defined price. The visible storefront may also distinguish a regular price from a final price, such as when a sale is shown. Keep the currency and any displayed price labels in frame if the image will be used as evidence.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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

Configurable and other complex products

Complex products can display a price range, and the amount shown for a configurable product can change with selected options. Inspect the actual storefront and decide whether the intended artifact should show the range or a price after selecting a particular variant. Do not assume that a single node or selector represents every product state or theme.

Adobe’s Catalog Service products query documents product details and price distinctions, including simple-product prices and ranges for complex products. This API information is useful context, not a requirement for taking a browser screenshot. Adobe’s GraphQL documentation describes product data as storefront content Commerce and Magento Open Source can provide; exact schema and availability depend on the installation and service used.

Build a Puppeteer capture

Install Puppeteer in your project with npm install puppeteer. Replace the URL and selector below with values inspected on the target storefront. The selector is deliberately site-specific; it is not a Magento-wide selector.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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
import puppeteer from 'puppeteer';

const productUrl = 'https://example.com/product-page';
const priceSelector = '.replace-with-inspected-price-selector';

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();
  await page.setViewport({ width: 1440, height: 1000 });
  await page.goto(productUrl, { waitUntil: 'networkidle2' });

  const price = await page.waitForSelector(priceSelector, { visible: true });
  if (!price) throw new Error(`Price not found: ${priceSelector}`);

  await price.screenshot({ path: 'product-price.png' });
} finally {
  await browser.close();
}

The Puppeteer screenshot guide demonstrates navigation with page.goto() using waitUntil: 'networkidle2', followed by a screenshot. Treat that as a starting point rather than a guarantee: storefront scripts, delayed price updates, and ongoing network activity vary. The installed Puppeteer version also matters; the documentation search result reported version 25.12.0 in 2026, but check the API reference against the version installed in your project.

Capture the full product page

To retain context instead of taking an element-only image, replace the element capture with:

await page.screenshot({ path: 'product-page.png', fullPage: true });

Capture a bounded region

When a particular viewport rectangle is more useful than the whole page or a DOM element, use clip:

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • 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.
await page.screenshot({
  path: 'product-price-region.png',
  clip: { x: 700, y: 250, width: 500, height: 300 }
});

Adjust the rectangle to the actual rendered layout and viewport. For supported image output, set type to an available format such as png, jpeg, or webp; consult the options reference for format-specific requirements.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Wait for the intended price, not just page navigation

A successful navigation does not prove that the price has reached its final state. Identify the visible price node in the browser’s rendered DOM, then wait for that node or for a store-specific condition that indicates the relevant selection has been applied. If selecting a product option causes a re-render, wait for the updated price and locate the element again before capturing.

  1. Open the product URL in a browser and inspect the visible price markup.
  2. Determine whether the product needs a variant, bundle choice, or other option selected to show the amount you intend to capture.
  3. Use a selector or readiness check appropriate to that page and state. Confirm that the price is visible, not merely present in hidden markup.
  4. Capture the page or element only after the correct price and its useful context appear.

There is no universal Magento timing rule or selector. A theme, extension, or storefront implementation can change both the markup and when the amount updates.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • 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

Keep price evidence interpretable

A screenshot records what the browser rendered at capture time; by itself it does not establish that the amount applies to every customer, region, currency, or product configuration. If the image is evidence for an audit or comparison, record the product URL, capture date and time, selected variant or options, and relevant storefront context alongside the image. Keep the currency and any option labels visible where possible.

Troubleshoot common capture failures

  • Selector wait times out: The selector may not match the target store, the price may not have rendered, or the intended option may not be selected. Inspect the rendered DOM, replace the example selector, and wait for the correct visible state.
  • Element screenshot reports a detached node: The page re-rendered after the element was found. Re-run the selector after the update, then capture the newly attached handle.
  • Screenshot shows an old or range price: The page may still be showing its initial state, or a product option has not been applied. Confirm the intended options and wait for the displayed amount to update before locating the price again.
  • Capture is blank or missing context: Check that the page navigation completed and that the target is visible in the selected viewport or capture mode. Use a page screenshot when title, currency, or option context matters.
  • Full-page image is difficult to read: A long page may make the price small in the resulting image. Capture the relevant element or a suitable clip instead, while retaining enough context to interpret it.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo can return a screenshot with one GET request. Its clean-shot steps can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. An MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a product page, save the response as an image and adjust the target URL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/product-page -o product-page.webp

See the ScreenshotNeo API documentation for request options. It includes full-page capture, CSS-selector element capture, device and viewport controls, and other settings; use the target store’s price markup when specifying an element. ScreenshotNeo offers 1,000 shots per month free with no card, and paid plans start at $5 for 3,000 shots. Learn about ScreenshotNeo, then sign up for 1,000 free screenshots a month with no card.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【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.

Frequently Asked Questions

Does an Adobe Commerce or Magento API have to be used to take a price screenshot?

No. Puppeteer captures the rendered browser page; Adobe’s product data documentation only helps explain why price states may differ.

Can one selector work for every Magento storefront?

No. Themes and storefront implementations vary, so inspect the target page’s rendered markup and use a selector specific to it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.

Adobe CommerceJavaScriptMagentoPuppeteerweb screenshots

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.