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 DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk5 min

Chrome Headless Screenshot Works Locally but Fails in GitHub Actions: How to Fix It

A symptom-first guide to fixing Chrome Headless screenshots that work locally but fail in GitHub Actions, with Puppeteer and Playwright-specific checks.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A Chrome Headless screenshot that works locally but fails in GitHub Actions does not point to one universal fix. First identify whether the browser fails to launch, the page fails to load, the screenshot times out, or it completes with different pixels. Then compare the CI browser installation, Linux dependencies, sandbox setup, and execution environment with your local one.

Classify the failure before changing the workflow

Record the framework, versions, runner image, failing command, and complete error output. Keep the failure category clear; launch fixes will not solve a navigation or rendering problem.

As an Amazon Associate I earn from qualifying purchases.

  • Launch failure: Chrome or Chromium never starts; logs may say “Failed to launch browser” or “No usable sandbox.”
  • Missing executable or library: CI cannot find the expected browser binary, or the browser exits because a shared library is unavailable.
  • Navigation failure: The browser starts, but the target page does not load successfully.
  • Screenshot timeout: Navigation may work, but the screenshot operation stalls or exceeds its timeout.
  • Rendering mismatch: The screenshot is produced, but its appearance differs from the local result.

Save the exact error, framework and browser versions, GitHub Actions runner OS/image, and the command that fails. Reports of failures on particular Linux runners or with a specific extension are examples, not proof of the cause in another workflow.

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

Check browser installation and version compatibility

Puppeteer

Puppeteer normally downloads a compatible Chrome for Testing as part of installation. If package-manager policy blocks install scripts, that browser download may be skipped. Check the CI install output and package-manager configuration, then compare the browser Puppeteer expects with the binary actually present. Puppeteer documents enabling its install script or installing the browser explicitly as remedies: Puppeteer installation guide.

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth

Browser installation behavior can change. The current Puppeteer guide describes downloading a recent Chrome for Testing and, from Puppeteer v21.6.0 onward, a chrome-headless-shell binary. Do not assume an older local browser or a system Chrome is interchangeable with the binary expected by the installed Puppeteer version.

Playwright

Use Playwright’s documented GitHub Actions setup rather than guessing at browser paths. Its workflow installs browser binaries and operating-system dependencies with npx playwright install --with-deps. Follow the current instructions for your Playwright version: Playwright on GitHub Actions.

Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.

For Linux launch failures, check native dependencies

A browser binary can exist and still fail to start if the runner lacks shared libraries. Puppeteer’s troubleshooting guidance suggests running ldd against the Chrome executable to identify missing dependencies and lists common Linux packages: Puppeteer troubleshooting.

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.
  1. Find the exact Chrome executable used by the automation framework in CI.
  2. Run ldd /path/to/chrome in the same runner or container environment.
  3. Inspect the output for missing libraries, then install the required operating-system packages using the runner’s package manager or the framework’s documented dependency-install command.
  4. Rerun the same screenshot command and confirm whether the original launch error has changed.

Do not infer Linux dependency requirements from a successful local run on a different operating system. Match the diagnosis to the runner image and framework version.

Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops | 7000mAh Battery, IPS FHD, 180°Viewing, Quad-Core Processor, Type-C, WiFi5, Portable Thin Business Student Laptops, Light Gray
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.

Treat “No usable sandbox” as a sandbox problem

If the error explicitly says “No usable sandbox,” investigate the runner or container’s sandbox configuration. It is not the same as a missing browser binary or missing shared library. Puppeteer’s troubleshooting documentation says: “Running without a sandbox is strongly discouraged. Consider configuring a sandbox instead.” Avoid making --no-sandbox a routine fix; disabling browser isolation changes the security posture and may conceal the actual environment problem.

A Puppeteer issue describes this error in one GitHub Actions context after a runner transition from Ubuntu 22.04 to Ubuntu 24.04. That report is a useful example of an environment-specific failure, not evidence that every Ubuntu runner needs the same workaround: Puppeteer issue #13841.

Rank #4
Sale
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11 | Copilot AI, WiFi 6, Long Battery Life, Lightweight & Portable, Online Learning, Browsing, Streaming, Willow Green
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.

Debug Playwright browser launch in CI

For Playwright launch failures, enable its browser debug logs in the workflow step that reproduces the failure:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
DEBUG=pw:browser npx playwright test

Use the actual command your project runs if it differs from npx playwright test. The output helps distinguish a browser process that never launches from failures later in navigation or screenshot capture. Combine the logs with Playwright’s CI installation instructions rather than changing unrelated flags: Playwright CI documentation.

Best Value
HP 14'' Laptop, Intel N150 CPU, 4GB RAM, 128GB SSD, Long Battery Life, 1TB Cloud Storage, Win 11 with Microsoft 365
  • 【Expansive Display】The 14 Non-touch display offers clear, and anti-glare coating, perfect for both work and entertainment.
  • Designed for mobility with a slim 0.71-inch profile and lightweight, making it easy to carry between home, office
  • 【Versatile Connectivity】 connected with multiple ports including USB 3.0 Type-C, and a headphone/mic combo jack, with Wi-Fi and Bluetooth for seamless wireless networking.
  • One Year Microsoft 365
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Investigate timeouts and visual differences separately

If the screenshot times out

Confirm whether browser startup and page navigation completed before the timeout. Then make one controlled change at a time and retain the full logs. A Playwright issue reports a screenshot timeout associated with an extension in a specific Linux/Playwright setup; it does not establish that extensions are the cause of other timeouts: Playwright issue #34166.

If the image differs from local output

Compare the environments that affect rendering: operating system, browser and framework versions, fonts, viewport, device scale factor, and any page state or timing assumptions in the test. Local success alone does not establish that CI has the same fonts, browser, native libraries, sandbox support, or execution conditions.

Playwright documents container execution as a way to make screenshot and visual-regression testing more consistent across operating systems. Its CI documentation includes a container example using mcr.microsoft.com/playwright:v1.63.0-noble; match any container tag you adopt to the Playwright version installed in your project, and verify the current documentation because example tags can change.

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

Change one variable, then verify the result

  1. Capture the baseline error and environment details.
  2. Make only the change indicated by the symptom: install the expected browser, install missing OS dependencies, address the reported sandbox configuration, or align rendering environments.
  3. Run the same command again on the same runner image.
  4. Check whether the failure category changed. If it did, diagnose the new symptom rather than keeping unrelated workarounds.
  5. Remove experimental launch flags that were not needed to resolve the verified cause.

Common errors and what to do

Symptom Likely area to inspect Next action
Browser executable missing Install scripts or browser download Check Puppeteer’s install-script policy and install the expected browser; for Playwright, use its documented browser installation command.
Chrome exits with missing shared libraries Runner OS dependencies Run ldd on the Chrome executable in CI and install the missing dependencies.
“No usable sandbox” Runner/container sandbox setup Investigate sandbox support; do not treat --no-sandbox as a general-purpose fix.
Playwright browser launch fails without a clear cause Browser process startup and CI setup Enable DEBUG=pw:browser and compare the workflow with Playwright’s current CI example.
Screenshot operation times out Page state, extensions, or screenshot-specific behavior Preserve logs and isolate changes one at a time; do not assume the browser failed to launch.
Screenshot completes but pixels differ OS, fonts, browser version, viewport, or timing Align local and CI environments; consider a version-matched Playwright container.

Or skip the browser setup

If you need a screenshot rather than a browser installation to debug, ScreenshotNeo provides a website screenshot API and MCP server. A single request can return an image or PDF; see the API documentation.

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

ScreenshotNeo accepts cookie/consent banners and removes known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and responses include X-Page-Verdict and X-Billed headers. Its MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for free and try 1,000 screenshots a month with no card.

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
Crashes, No Sound, or Screen Glitches?Free driver 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.