For JavaScript automation that controls Chrome or Chromium, use Puppeteer and set fullPage: true: await page.screenshot({ path: 'full-page.png', fullPage: true }); This captures beyond the visible viewport. It is not ordinary JavaScript to paste into a webpage console: the script must control a browser page. If you mean an extension or a one-off manual capture, those use different methods.
Choose the right Chrome screenshot method
| Method | Best for | Full-page support | Main caveat |
|---|---|---|---|
| Puppeteer | Node.js automation controlling a browser page | fullPage: true |
Requires a Puppeteer-controlled page; it is not a page-console API. Puppeteer ScreenshotOptions. |
| Chrome DevTools Protocol (CDP) | Applications that already communicate with Chrome through CDP | Page.captureScreenshot with captureBeyondViewport: true |
Low-level: your client manages the protocol session and returned base64 image. CDP Page.captureScreenshot. |
| Chrome extension API | An extension capturing the active tab’s current view | No built-in full-page option; it captures the visible area | Needs activeTab or all_urls; scrolling and stitching are separate work. Chrome Tabs API. |
| DevTools command menu | A single manual full-size capture | DevTools offers a “Capture full size screenshot” command | It is a UI action, not JavaScript automation. |
| Full-page capture extension | Occasional capture without building automation | Depends on the extension’s implementation | Permissions and behavior vary by extension and page. GoFullPage Chrome Web Store listing is an example, not an endorsement. |
For a repeatable script, Puppeteer is the most direct option. Use CDP when you need protocol-level control; use an extension API only from an extension context. Match the method to where your JavaScript runs and whether you need a full document or just the visible viewport.
Capture a full webpage with Puppeteer
Install Puppeteer in a Node.js project with npm install puppeteer. The following complete script opens a page, waits for navigation activity to settle, and writes a PNG screenshot to disk:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: true });
try {
const page = await browser.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle0' });
await page.screenshot({ path: 'full-page.png', fullPage: true });
} finally {
await browser.close();
}
})();
Save it as screenshot.js and run node screenshot.js. The result is full-page.png in the current directory. Puppeteer’s ScreenshotOptions reference documents fullPage as taking a screenshot of the full page when true, and documents screenshot options including path, format, encoding, quality and clipping.
#1 Best Overall
- KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
- EASY SETUP: Experience simple installation with the USB wired connection
- VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
- SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
- FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.
Wait for the content you actually need
networkidle0 is a navigation wait choice, not proof that every image, personalized element, or lazy-loaded section has rendered. If content appears only after scrolling, first scroll through the document and allow the page to update, then inspect the saved image. Pages that continuously poll or stream data may also never reach an idle condition; choose a wait condition appropriate to that page rather than treating network idle as universal.
Capture only a portion or change output
Use Puppeteer’s screenshot options when you need a format or region other than a full-page PNG. For example, path selects the output filename, type can select PNG, JPEG, or WebP where supported by the option, quality applies to JPEG/WebP, and clip specifies a rectangular region. Do not combine options blindly: a clip is a region capture, while fullPage requests the full page. Consult the current API reference for option constraints and the Puppeteer version in your project.
Rank #2
- Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
- Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
- Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
- Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
- Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites
Use CDP when you need lower-level control
Chrome’s DevTools Protocol exposes Page.captureScreenshot. Its captureBeyondViewport parameter defaults to false in the live protocol reference; set it to true when the capture must extend beyond the viewport. A CDP client must establish a protocol session and invoke the Page-domain method; the response image is base64 data that the client must decode and save. This is not a standalone browser-page function, so the exact connection and command syntax depend on the CDP client you use. See the protocol method reference for format, quality, clip and output details.
What Chrome extensions and manual capture can do
Extension JavaScript captures the visible tab
chrome.tabs.captureVisibleTab() captures the visible area of the active tab, not the whole document. It is an extension API, not a function available to arbitrary JavaScript in a webpage or its console. Chrome documents that the Tabs API is for extension service workers and extension pages, not content scripts. The extension needs the activeTab permission or all_urls; activeTab grants temporary host access following a user action.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Rank #3
- All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
- Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
- Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
- Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
- Plastic parts in K120 include 51% certified post-consumer recycled plastic*
Chrome documents a maximum of two captureVisibleTab() calls per second (Chrome 92+). An extension can attempt to scroll, capture successive views, and stitch them, but that is a separate implementation with timing, layout, and rate-limit concerns. It may show repeated sticky headers or miss content that has not rendered. Consult the Chrome API documentation before building that workflow.
For a one-off, use DevTools or an extension
Chrome DevTools has a command-menu action named “Capture full size screenshot.” Open DevTools, open the command menu, and search for that command. This is a manual workflow, not a way to call a screenshot API from JavaScript. A full-page extension can be convenient for occasional use, but check its requested permissions and current listing because implementation and behavior can change.
Handle pages that do not capture cleanly
A full-page screenshot records what the browser has rendered; it does not make unloaded or hidden content appear automatically. Inspect the output when the page has dynamic behavior, particularly for:
Rank #4
- 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
- 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
- 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
- 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
- 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use
- Lazy-loaded images or sections: scroll through the document and wait for content to load before taking the final capture.
- Sticky or fixed headers: full-page browser capture and scroll-and-stitch capture can produce different results. Stitching may repeat fixed elements across segments.
- Nested scroll areas: an inner panel has its own scroll position. Capturing the document does not necessarily reveal all of that panel’s hidden content.
- Frames: embedded content can have different rendering and scrolling behavior; verify that the desired frame content appears.
- Animations and changing content: the captured frame may land mid-animation or while text and images are updating. Wait for a stable state where practical.
- Very long pages: full-document images can be large, and maximum dimensions or resource limits depend on the browser and implementation. Do not assume unlimited capture height.
These are page-specific behaviors, not guarantees of failure. The GoFullPage listing’s changelog includes fixes involving scrolling, fixed elements, frames, and long-page capture, a reminder that capture behavior can evolve; it does not establish how a particular site will render.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Troubleshooting Puppeteer screenshots
- The script says
pageis undefined: create a page withawait browser.newPage()and callscreenshot()on that Puppeteer page object, not in the website console. - The output contains only the visible area: check that the Puppeteer screenshot call includes
fullPage: true, and that you are not using the extension’s visible-tab method instead. - Images or sections are missing: the page may load them on scroll. Scroll deliberately, wait for the relevant content, then capture and inspect again.
- The navigation wait hangs: a page with continuous network activity may not become idle. Select a different navigation wait condition and wait explicitly for the page element or state you need.
- Sticky bars appear repeatedly: this commonly points to a scroll-and-stitch approach. Prefer browser-level full-page capture when suitable; otherwise account for fixed elements in the stitching design.
- An extension call fails in the console:
chrome.tabsbelongs to extension code and requires extension permissions; it is not exposed to normal page JavaScript. - Extension captures are throttled: keep calls within Chrome’s documented two-per-second maximum and design for asynchronous capture and scrolling rather than issuing rapid requests.
- The screenshot is huge or fails on a tall page: the image may exceed implementation or memory limits. Capture a smaller region or divide the task into sections, while accounting for overlaps and fixed elements.
Or skip the browser setup
If you need a screenshot from a script or service without managing a Chrome session, ScreenshotNeo accepts a URL and returns a screenshot or PDF. Its API supports full-page capture with lazy images loaded. For a full-page WebP response, use this cURL call, replacing the URL with your target:
Best Value
- All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
- Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
- Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
- Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
- Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request options. Equivalent examples:
Python
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
ScreenshotNeo accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those cleanup steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. Its MCP server gives AI agents tools to take screenshots, get page information, and capture PDFs. The free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 screenshots.
Sign up for 1,000 free screenshots a month—no card required.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesFrequently Asked Questions
Can I run Puppeteer’s full-page screenshot code in Chrome’s console?
No. It must run in a Node.js script using a Puppeteer-controlled browser page.
Does Chrome’s tabs capture API take a full-page screenshot?
No. chrome.tabs.captureVisibleTab() captures the visible area; it has no built-in full-page option.
Does fullPage: true guarantee lazy-loaded content is included?
No. Content that has not rendered may be absent, so scroll and wait for page-specific lazy content before capture.
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.




