October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Screenshot Indian Government Tender Pages in Node.js with Playwright

A practical Node.js and Playwright guide to capturing Indian government tender pages, choosing screenshot settings, handling access challenges, and recording repeatable evidence.

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.

Use Playwright’s page.screenshot({ fullPage: true }) to save a tender page as a full-page image. The code below shows the basic Node.js workflow, how to choose practical capture settings, and what to do if an Indian government portal presents a CAPTCHA or other access challenge.

Capture a tender page with Playwright

Install Playwright, launch Chromium, navigate to the actual tender URL, and save the page. Replace the example URL with the official portal and tender page you need to record.

As an Amazon Associate I earn from qualifying purchases.

npm install playwright
npx playwright install chromium
const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  try {
    const page = await browser.newPage();
    await page.goto('https://example.gov.in/tender-page', {
      waitUntil: 'domcontentloaded',
      timeout: 60000
    });
    await page.screenshot({ path: 'tender.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

The example uses domcontentloaded to avoid waiting indefinitely for pages with persistent network activity. It does not establish that any particular tender portal will load successfully or that the page is complete after that event. Inspect the resulting image and adjust the wait strategy if the portal loads its tender details later. Playwright documents browser setup, navigation, and screenshot options in its Page API.

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

Choose page coverage, resolution, and format

Viewport or full page

By default, a screenshot covers the currently visible viewport. Set fullPage: true to capture the full scrollable page in one image:

#1 Best Overall
await page.screenshot({ path: 'tender-full.png', fullPage: true });

For a viewport-only record, omit the option or set it to false:

await page.screenshot({ path: 'tender-viewport.png' });

CSS-pixel or device-pixel scale

The scale option controls output dimensions. css creates one image pixel per CSS pixel and usually keeps files more compact; device captures at the device pixel ratio and can preserve more detail in a larger image. Choose consistently if you are comparing captures.

await page.screenshot({
  path: 'tender.png',
  fullPage: true,
  scale: 'css'
});

Image format

PNG is the default and is suitable for text-heavy records. Playwright can also output JPEG or WebP by using the corresponding file type, for example type: 'jpeg' or type: 'webp'. JPEG supports a quality setting; quality applies to JPEG, not PNG. Use a supported extension that matches the chosen type.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({
  path: 'tender.webp',
  type: 'webp',
  fullPage: true
});

Other Page API options include clipping to a selected rectangle, masking locators, and omitting the background. Check the API documentation for option details and constraints before relying on them for a record.

Handle CAPTCHA and access challenges appropriately

Some official tender pages require a CAPTCHA before showing search results. The Government of India eProcurement advanced search page examined for this guide asks users to provide a CAPTCHA to list active tenders; the central tender-search page also presents one. These observations are specific to those interfaces, not a rule for every state, department, or other government portal. The official eProcurement login page examined displays a notice to enable JavaScript for further processing.

If a CAPTCHA or other access challenge appears, pause for legitimate user interaction rather than trying to solve or bypass it automatically. Do not treat an automated capture as proof that a protected page was accessed or that its contents were retrieved.

Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

The CPPP disclaimer says the service is provided by the Department of Expenditure in association with NIC, while the respective departments own, publish, and maintain tender documents and are responsible for their accuracy, authenticity, and validity. A screenshot is a visual record, not independent verification that a tender is current or authoritative. Preserve the tender URL and capture time, and confirm important details against the original tender notification or with the publishing department.

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

Make repeated captures comparable and traceable

Browser rendering can change across operating systems, browser versions, settings, hardware, power conditions, and headless mode, as Playwright notes in its visual comparisons documentation. For recurring captures or visual comparisons, keep the environment and settings consistent: use the same Playwright and browser versions, operating system, viewport, device scale, and screenshot options.

Keep a small record alongside each image so another person can identify what it shows and how it was produced:

  • The exact tender page URL.
  • The capture timestamp in UTC.
  • The Node.js, Playwright, and browser versions.
  • Whether the image covers the viewport or the full page, plus the viewport and scale settings.

These details improve reproducibility; they do not establish the legal status or current validity of the tender notice.

Troubleshoot common capture problems

The output shows a CAPTCHA, login screen, or challenge

The portal may require an interactive step or access authorization. Stop automation at the challenge and follow the portal’s legitimate user flow. Do not attempt to defeat access controls; capture only material you are authorized to view.

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.

The image is blank or missing tender details

Navigation completion does not guarantee that every page element has rendered. Inspect the page and wait for a relevant element or a short, deliberate delay when the portal loads content after navigation. If the details are behind a challenge or require a user action, handle that through the portal rather than trying to bypass it.

Rank #3
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage | LPDDR4 RAM, 180° Lay-Flat, Dual-Band WiFi, Type-C PD Fast Charging, Thin & Lightweight for Students, Home & Office, Gray
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.

The page is cut off

Confirm that fullPage: true is set. If you only need a specific region, use Playwright’s screenshot clipping options; otherwise, the default capture is limited to the viewport.

Images differ between runs or machines

Check for changes in browser version, operating system, viewport, scale, headless mode, and other rendering settings. Keep these fixed for comparisons, and record them with the capture.

The script times out or the portal does not load

Government portals can behave differently from ordinary sites, and a timeout does not identify the cause by itself. Check the URL and network access, inspect whether the portal displays an access challenge, and set a timeout appropriate for the site. Avoid repeatedly retrying in a way that conflicts with the portal’s terms or access controls.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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 or PDF with one GET request. Cookie and consent banners, newsletter popups, and chat widgets are removed before capture; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Its MCP server provides screenshot tools for AI agents, and 1,000 screenshots a month are free with no card; paid plans start at $5 for 3,000.

Use your own API key in place of YOUR_API_KEY. Review the ScreenshotNeo API documentation for parameters and response details.

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.gov.in/tender-page' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Sign up for 1,000 free screenshots a month with no card.

Frequently Asked Questions

Does this Playwright example bypass a tender portal CAPTCHA?

No. It captures a page available to the browser; a CAPTCHA or other access challenge requires legitimate user interaction.

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

Will a screenshot prove that a tender is still valid?

No. Confirm important details against the original tender notification and the department responsible for publishing it.

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.

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
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.