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

Use a real browser, wait for the product page’s actual price element to appear and contain text, then take the screenshot. A plain HTTP download may capture only the initial HTML, before JavaScript renders the price. With Playwright, the dependable wait is specific to the page—not a generic network-idle state.

Capture the page after its price renders

Playwright runs the page in a browser, so the site’s JavaScript can render the product and price before capture. First inspect the page to find a selector that identifies the price on that site. There is no universal price selector: a selector that works for one retailer may match nothing, or the wrong element, on another.

  1. Open the product page with page.goto().
  2. Wait for the site-specific price locator to become visible.
  3. Check that the locator contains non-empty text when the price itself is the evidence you need.
  4. Capture the viewport, the price element, or the full page, depending on the intended image.

This JavaScript example uses Playwright’s library API. Replace the selector with one you have verified in the target page’s DOM. The example is a pattern, not a tested selector for a particular retailer.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();

  try {
    await page.goto('https://example.com/product', { waitUntil: 'domcontentloaded' });
    const price = page.locator('[REPLACE_WITH_SITE_SPECIFIC_PRICE_SELECTOR]');
    await price.waitFor({ state: 'visible' });
    await price.evaluate(async element => {
      if (!element.textContent?.trim()) {
        throw new Error('Price element is visible but has no text');
      }
    });
    await page.screenshot({ path: 'product-page.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

Install Playwright and its browser in your project before running the script; see the Playwright Screenshots guide for the official setup and capture examples. If the page uses a framework that replaces the price node during rendering, consider re-reading the locator’s text after it becomes visible rather than retaining an element handle.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Dell Optiplex 3060 Desktop Computer | Intel i5-8500 (3.2) | 32GB DDR4 RAM | 1TB SSD Solid State | Built in WiFi | Bluetooth | Windows 11 Professional | Home or Office PC (Renewed)
  • [INTEL POWERED CONTENT] - Built with a 8th Generation Hexa-Core Intel i5 and 32GB of DDR4 RAM; Modern, Windows 11 ready, with 4K support, Executive multitasking, media streaming and smooth, multi-tab web browsing; Perfect as an all-purpose multimedia computer; built for content creators; Plenty of RAM and Mass storage for photo and video editing powered by Intel HD 630
  • [LATEST WIRELESS TECH] - This Dell Desktop Computer easily connects to the internet through the Built In WiFi / Bluetooth
  • [SOLID STATE STORAGE] - This Dell Computer setup comes with an ultra-fast 1TB Solid State Drive (SSD); Setup as the primary boot device; Boot and load programs with lightning speed ; Additional expansion available
  • [BUY & OWN WITH CONFIDENCE] - From the world's largest Microsoft Authorized Refurbisher; Quality Guarantee and Free Tech Support; Award-winning Customer Service; | Support Sustainable Business
  • [MODERN HI-SPEED PORTS] - USB 3.0 (x4) | USB 2.0 (x4) | DisplayPort (x1) | HDMI Port (x1) | Audio Combo Jack (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)

Choose a readiness condition that proves the price is ready

A navigation event only describes browser loading activity; it does not guarantee that an application has finished calculating or inserting a price. Prefer a locator for the actual price and an assertion on its text. Playwright’s documentation discourages networkidle as a readiness check and defines it as having no network connections for at least 500 ms. A page can reach that state before a delayed price update, or keep connections open after the price is ready. See the Playwright Page API.

Use load or domcontentloaded as a navigation milestone if it fits the page, then make the price locator—not that milestone—the final capture gate. If the product page renders the price only after choosing a variant, region, or other option, perform that interaction first and wait for the resulting price text. The exact interaction and selector depend on the site.

Rank #2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)

Select what the screenshot needs to show

Capture Use it when Playwright example
Viewport You need the visible portion of the page as a visitor sees it at the chosen viewport. await page.screenshot({ path: 'product.png' });
Price element You need a focused image of the price or a product card, rather than surrounding page context. await price.screenshot({ path: 'price.png' });
Full page You need the full scrollable page, including content below the current viewport. await page.screenshot({ path: 'product-full.png', fullPage: true });

Playwright supports PNG, JPEG, and WebP screenshot types. PNG is a sensible default when clarity matters; JPEG or WebP may better suit sharing or storage constraints. The official documentation covers viewport, element, and full-page capture and the screenshot API options.

If the price or other relevant content is below the fold and loads lazily, scroll that section into view before capture, then verify the price is still visible. Full-page capture extends the screenshot to the page’s scrollable content, but the page still needs time and the right interaction to populate dynamic content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
HP All-in-OneDesktop Computer, 16GB DDR5 RAM, Intel Quad-Cores, 128GB SSD, WiFi6, Keyboard & Mouse, Windows 11
  • IMMERSIVE 24 INCH DISPLAY: Experience stunning clarity on a Full HD IPS screen with ultra-thin bezels, offering a 90% screen-to-body ratio that makes everything from spreadsheets to streaming come alive with vibrant colors and crisp details.
  • POWERFUL INTEL PROCESSING: Tackle demanding tasks with ease thanks to the Intel processor and 16GB of high-speed memory, delivering smooth performance whether you're multitasking between applications or running productivity software.
  • GENEROUS STORAGE: Store all your important files, photos, and programs with blazing-fast solid state drive technology that ensures quick boot times, rapid file access, and plenty of space for your digital life.
  • ENHANCED PRIVACY AND COLLABORATION: Work confidently with the pop-up privacy camera that tucks away when not in use, plus dual microphones with noise reduction for crystal-clear video calls that keep you connected professionally.
  • ECO-CONSCIOUS DESIGN: Feel good about your purchase with an EPEAT Gold registered and ENERGY STAR certified computer that combines premium performance with responsible environmental manufacturing practices.

When to use manual capture, Playwright, or a hosted service

  • Manual browser capture: convenient for a one-off image when the price is visibly loaded and no repeatable workflow is needed. You must ensure the correct product state and capture scope yourself.
  • Playwright: useful for repeatable captures and when you need to wait on a specific page element or interact with the page. You are responsible for browser setup, selector maintenance, and running the capture infrastructure.
  • Hosted screenshot service: can avoid managing browser infrastructure, but confirm that its controls suit the target page. This category is not a guarantee that any service can handle every retailer’s JavaScript price flow or required interactions.

For an API option, ScreenshotNeo puts clean shots first: it accepts cookie/consent banners and removes 60+ known consent platforms, newsletter popups, and chat widgets before capture; only clean shots are billed, and its response identifies page verdict and billing status. Its available capture options include waiting for a selector, a delay, or network idle, along with custom JavaScript and clicking an element before capture. A page-specific price wait or interaction may still be necessary for a particular site.

Or skip the browser setup

One GET request can return a screenshot; consult the ScreenshotNeo API documentation for request options and setup.

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

Cookie banners, popups, and chat widgets are removed before the shot. Bot checks, blank pages, and failed loads are never billed. An MCP server lets AI agents use screenshot tools, and 1,000 screenshots a month are free with no card; paid plans start at $5 for 3,000. Sign up for 1,000 free screenshots a month, with no card required.

Troubleshoot missing or incorrect prices

  • The selector times out: inspect the rendered page and replace the example selector with the actual price selector. The page may require a variant choice or another interaction before the price exists.
  • The screenshot has a blank price: wait for the locator to be visible and confirm its text is non-empty before capturing. Visibility alone does not establish that text has loaded.
  • The page looks loaded but the price changes later: use a price-specific wait or assertion after the relevant page action. Do not treat networkidle as proof that the price is final.
  • The price is missing from a full-page image: if content is lazy-loaded, scroll the relevant section into view and verify the price before capture.
  • The image cuts off surrounding content: decide whether you need viewport, element, or full-page scope; an element screenshot is intentionally focused, while full-page capture includes the scrollable page.
  • The script fails before capture: verify Playwright and its browser are installed in the environment running the script, and check that the locator matches the page currently served to that browser.

Reliability and cost considerations

For repeat captures, selectors and page behavior can change when the retailer updates its layout or price flow; treat the locator and any required interactions as page-specific configuration. Capture only after checking the rendered text, and retain enough surrounding context in the screenshot if the image needs to show which product or option the price belongs to. The official Playwright guidance reviewed for this workflow provides no success-rate, speed, or performance benchmark, so plan timing around the target page rather than assuming a universal wait duration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
  • This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box. Only select sellers who maintain a high-performance bar may offer Certified Refurbished products on Amazon.com.
  • Dell Optiplex 3050 SFF Desktop computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD
  • Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.
  • Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
  • Support 4K (3840x2160) Dual display, makes it easy to connect two monitors at the same time, and you can expand working Windows, mirror content, or expand a single window across multiple monitors.

A local Playwright script requires you to install and run the browser. A hosted API exchanges that setup for a service request and its plan limits; ScreenshotNeo’s free plan includes 1,000 shots per month with no card, and paid plans start at $5 for 3,000 shots. Those prices are the stated plan allowances, not a claim about how many captures a specific product page will successfully render.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Can I use a CSS selector from another store’s product page?

Only if it matches the target page’s rendered price element; selectors are site-specific and not universal.

Best Value
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
  • Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections
  • Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
  • Storage: Combines 500GB SSD and 1TB HDD for ample storage space
  • Graphics: Integrated Intel UHD Graphics 630 for crisp visuals and video playback
  • Design: Sleek desktop tower with black color and slim profile for modern look

Which screenshot format should I choose?

Playwright supports PNG, JPEG, and WebP. Choose based on whether image clarity or file size matters more for your use.

Quick Recap

Bestseller No. 2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Model: Dell OptiPlex 7050 Small Form Factor (SFF); Processor: Intel Core i7-7700 3.60 GHz; Memory: 32GB DDR4 Ram
$399.99
Bestseller No. 4
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.; Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
$179.98
Bestseller No. 5
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections; Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
$255.00

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.

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