Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

Puppeteer से Indian Government Website का Screenshot लेते समय Layout टूटे तो Fix

Puppeteer screenshot में टूटे layout को दोहराएँ, viewport और render timing स्थिर करें, फिर regional fonts और responsive widths की जाँच करें।

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.

अगर Puppeteer से किसी भारतीय सरकारी वेबसाइट का screenshot लेते समय layout टूट रहा है, तो पहले उसी URL, viewport और browser setup में समस्या दोहराएँ; फिर viewport को navigation से पहले तय करें और screenshot तभी लें जब जरूरी content सचमुच render हो चुका हो। Hindi या अन्य regional-language text और responsive breakpoints को अलग-अलग जाँचें। URL और capture details के बिना किसी एक कारण को निश्चित नहीं कहा जा सकता।

पहले capture को दोहराने योग्य बनाएँ

एक बार में एक ही चर बदलें। उसी URL और पेज स्थिति के साथ इन विवरणों को लिखें:

As an Amazon Associate I earn from qualifying purchases.

  • Puppeteer और Chromium के versions तथा operating system।
  • Viewport की CSS-pixel चौड़ाई और ऊँचाई; mobile और touch emulation तथा device scale factor, यदि इस्तेमाल हों।
  • Navigation और screenshot का न्यूनतम code, screenshot विकल्प, और लागू किए गए waits।
  • Console और network errors, साथ में खराब screenshot और अपेक्षित परिणाम का screenshot।

Screenshot के pixel dimensions और CSS viewport एक ही चीज नहीं हैं। Device scale factor output image के pixel आकार को प्रभावित कर सकता है, इसलिए तुलना में viewport और scale factor दोनों दर्ज करें।

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.

Viewport को navigation से पहले सेट करें

Puppeteer की Page API बताती है कि कई websites phone-sized dimensions की अपेक्षा नहीं करतीं और navigation से पहले viewport सेट करने की सलाह देती है। Mobile या touch properties बदलने पर कुछ स्थितियों में viewport परिवर्तन page reload करा सकता है। इसलिए इच्छित dimensions और emulation पहले तय करें, फिर पेज खोलें।

#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
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  const page = await browser.newPage();

  // अपनी target CSS-pixel dimensions और site URL रखें.
  await page.setViewport({
    width: 1366,
    height: 900,
    deviceScaleFactor: 1,
    isMobile: false,
    hasTouch: false
  });

  await page.goto('https://example.gov.in', {
    waitUntil: 'networkidle2',
    timeout: 60000
  });

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

https://example.gov.in को उस URL से बदलें जिसे आप जाँच रहे हैं। यह reproducible शुरुआती नमूना है, किसी खास सरकारी site के लिए तय viewport या ready signal नहीं। Puppeteer के उपलब्ध विकल्पों की पुष्टि अपने installed version के documentation से करें।

पेज तैयार होने की सही शर्त चुनें

Puppeteer की screenshots guide navigation में waitUntil: 'networkidle2' के बाद screenshot लेने का उदाहरण देती है। इसे शुरुआती बिंदु मानें, गारंटी नहीं: animation, लगातार polling या देर से आने वाले content वाले पेज network शांत होने के बाद भी दृश्य रूप से बदल सकते हैं। ऐसे पेज पर किसी पहचाने जा सकने वाले heading, app root या site-specific completion signal का इंतजार अधिक भरोसेमंद हो सकता है। Page API में waitForFunction और waitForNetworkIdle भी उपलब्ध हैं।

पहचाने जा सकने वाले element का इंतजार

await page.goto('https://example.gov.in', { waitUntil: 'domcontentloaded' });
await page.waitForSelector('main h1', { visible: true, timeout: 30000 });
await page.screenshot({ path: 'page.png', fullPage: true });

Selector को उस पेज के वास्तविक, स्थिर element से बदलें। यदि content किसी app state के बाद ही पूरा होता है, तो उसी state को दर्शाने वाली शर्त रखें:

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
await page.waitForFunction(() => {
  const root = document.querySelector('#app');
  return root && root.getAttribute('data-ready') === 'true';
}, { timeout: 30000 });

ऊपर का #app और data-ready केवल उदाहरण हैं; वास्तविक site में ऐसा signal उपलब्ध न भी हो। केवल लंबा fixed delay जोड़ने से rendering पूरी होने की पुष्टि नहीं होती।

सिर्फ एक element capture करना

यदि समस्या किसी खास panel में है, तो पूरे पेज के बजाय उस element को capture करके जाँचें। Puppeteer में ElementHandle.screenshot() उपलब्ध है; documentation के अनुसार छिपा target default तौर पर view में लाने के लिए scroll किया जाता है।

const panel = await page.waitForSelector('.target-panel', { visible: true });
await panel.screenshot({ path: 'panel.png' });

यह तुलना यह अलग करने में मदद करती है कि समस्या पूरे पेज के responsive layout में है या चुने गए हिस्से की rendering में।

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.

Hindi और regional-language text तथा fonts जाँचें

Guidelines for Indian Government Websites and Apps (GIGW) का guideline 13 Hindi/regional-language fonts को लोकप्रिय browsers में संभावित layout inconsistency के लिए जाँचने, Unicode इस्तेमाल करने और browsers, versions, operating systems, connection speeds तथा screen resolutions पर परीक्षण की बात करता है। यह उपयोगी परीक्षण प्राथमिकता है, लेकिन इससे किसी विशेष site में font defect साबित नहीं होता।

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • जाँचें कि अपेक्षित font files सफलतापूर्वक load हो रही हैं; DevTools के network records में असफल font requests देखें।
  • Hindi या regional text में अक्षर कटने, गलत wrapping, line-height बदलाव या fallback font के कारण बढ़ी हुई ऊँचाई पर ध्यान दें।
  • एक ही URL और viewport पर उपलब्ध browser/OS या font environment बदलकर तुलना करें।
  • System fallback से तुलना केवल निदान के लिए करें। Site की design आवश्यकता की पुष्टि किए बिना production में उसकी intended font को बदलना ठीक नहीं।

Responsive breakpoint को target width पर परखें

GIGW guideline 15 CSS-controlled responsive layout और अलग-अलग devices पर परीक्षण की बात करता है। Capture को ठीक उसी CSS-pixel चौड़ाई और ऊँचाई पर चलाएँ जिसकी आपको जरूरत है, फिर पास की एक चौड़ाई पर दोहराएँ। यदि layout केवल एक width पर टूटता है, तो संबंधित breakpoint, overflow करने वाले element और fixed या sticky content को inspect करें।

  1. Viewport पहले सेट करके target width पर पेज खोलें और तैयार स्थिति में screenshot लें।
  2. उसी configuration में केवल width को पास की दूसरी चौड़ाई में बदलें; बाकी browser और page-ready conditions समान रखें।
  3. दोनों screenshots में text wrapping, horizontal overflow, late-loading images, fixed/sticky elements और consent या accessibility widgets की स्थिति देखें।
  4. यदि full-page और viewport screenshots की तुलना कर रहे हों, तो पहले समान page state स्थिर करें; अन्यथा अंतर capture के समय से आ सकता है।

ये जाँचने योग्य संभावनाएँ हैं, अज्ञात site के बारे में स्थापित root causes नहीं।

एक समय में एक environment factor बदलें

जब viewport और page state स्थिर हों, तभी तुलना के लिए एक axis बदलें:

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
  • Viewport width/height।
  • Mobile या touch emulation।
  • Device scale factor।
  • Puppeteer या Chromium version।
  • Operating system और उपलब्ध fonts।
  • Page-ready condition।

हर run के exact values लिखें। यदि समस्या केवल एक environment में आती है, तो तुलना से यह पता लगाने में मदद मिलेगी कि अंतर rendering environment, font availability, network loading या wait condition से जुड़ा है या नहीं।

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

आम लक्षण और अगला कदम

लक्षण जाँच अगला कदम
कॉलम या navigation गलत जगह टूटे क्या capture viewport की CSS-pixel dimensions इच्छित आकार से मेल खाती हैं? Viewport navigation से पहले सेट करें; target और पास की width पर तुलना करें।
Screenshot में कुछ content गायब या आधा दिखे क्या चुना गया heading/root visible है, और क्या content बाद में आता है? Network idle के साथ आवश्यक होने पर selector या app-specific condition का इंतजार करें।
Hindi text की wrapping या line height अलग हो क्या intended font request सफल है और capture environment में font उपलब्ध है? Font/network results देखें और एक समान viewport में browser/OS तुलना करें।
एक width पर सही, दूसरी पर टूटा क्या responsive breakpoint या कोई element container से बाहर जा रहा है? Exact widths दर्ज करें और संबंधित CSS तथा overflow inspect करें।
Run के बीच परिणाम बदलता है क्या browser version, page state, network timing या emulation बदल रही है? Configuration स्थिर करें और केवल एक variable प्रति run बदलें।
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 पर एक GET request से screenshot लिया जा सकता है; parameters और उपलब्ध capture विकल्पों के लिए ScreenshotNeo docs देखें।

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

ScreenshotNeo capture से पहले cookie/consent banners स्वीकार करके और 60 से अधिक ज्ञात consent platforms, newsletter popups तथा chat widgets हटाकर साफ screenshot देने के लिए बना है; हर कदम बंद किया जा सकता है। Bot checks/CAPTCHAs, blank pages, timeouts, failed loads और cache hits के लिए शुल्क नहीं लगता; response में X-Page-Verdict और X-Billed headers बताते हैं कि क्या हुआ। इसका MCP server AI agents को screenshots लेने देता है। Free plan में बिना card के 1,000 shots प्रति माह हैं; paid plans $5 में 3,000 से शुरू होते हैं।

बिना card के 1,000 free screenshots प्रति माह के लिए साइन up करें।

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.

किसी निश्चित root cause के लिए क्या साझा करें

बिना URL और capture विवरण के किसी एक वजह को निश्चित नहीं किया जा सकता। समस्या की ठोस जाँच के लिए URL, Puppeteer और Chromium versions, viewport/emulation settings, न्यूनतम capture code, console/network errors तथा खराब और अपेक्षित screenshots दें।

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

GIGW portal अपने वर्तमान पृष्ठ पर Manual 3.0 और validation, accessibility, mobile friendliness तथा assistive technologies के संसाधन प्रस्तुत करता है; portal पर last-updated date October 1, 2026 दी गई है। ये दिशानिर्देश परीक्षण का संदर्भ देते हैं, किसी खास site की कमी या non-compliance का प्रमाण नहीं।

Frequently Asked Questions

क्या हर सरकारी वेबसाइट पर `networkidle2` का इंतजार करना चाहिए?

नहीं। यह Puppeteer की screenshots guide में दिया गया उदाहरण है। लगातार requests या देर से आने वाले content के मामले में उस page के लिए meaningful selector या completion condition चुनें।

क्या screenshot का pixel आकार ही viewport की चौड़ाई बताता है?

नहीं। Viewport CSS pixels में होता है; device scale factor output image के pixels को प्रभावित कर सकता है। दोनों मान दर्ज करके तुलना करें।

क्या Hindi text की समस्या से यह साबित होता है कि site GIGW का पालन नहीं करती?

नहीं। GIGW परीक्षण की अपेक्षाएँ बताता है; किसी एक screenshot से किसी site के अनुपालन या उल्लंघन का निष्कर्ष नहीं निकलता।

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.

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

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.