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

If Selenium’s headless Chrome session appears to return an empty page, the most common explanation is that your code reads the page before its JavaScript-rendered content is ready. A successful navigation—and even document.readyState == "complete"—does not guarantee that a web app has finished rendering. Wait for a page-specific element that proves the content is usable. If it is still missing, check the final URL, frames, browser and driver versions, startup logs, and differences between headless and visible runs.

What “empty page” can mean

First establish what is empty. A blank screenshot, an empty driver.page_source, a missing results area, and a page containing only a sign-in or challenge screen are different failures. They point to different causes. The title alone does not identify the target URL, Selenium language binding, browser and driver versions, capabilities, or logs, so there is no single page-specific cause that can be diagnosed without those details.

Selenium’s navigation wait is tied to a document loading milestone, not necessarily to the completion of a modern application’s rendering. As the Selenium Waiting Strategies documentation explains, “The readyState only concerns itself with loading assets defined in the HTML, but loaded JavaScript assets often result in changes to the site.” A page can therefore reach its load event while JavaScript is still fetching data, creating elements, or revealing content.

Headless mode does not, by itself, mean JavaScript is disabled. Modern Chrome headless shares Chrome’s browser code, but differences in startup environment, permissions, flags, viewport, profile, or a site’s response can still affect what you see.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#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

Use an explicit wait for usable content

Wait for a condition tied to the page’s actual purpose: for example, a results container becoming visible, a known heading appearing, or a loading indicator disappearing. Selenium’s explicit waits are designed for elements that JavaScript creates or reveals. A wait for document.readyState alone only checks a browser milestone; it does not establish that an asynchronous application is ready.

Here is a Python example using Selenium’s explicit-wait pattern. Replace the example URL and CSS selector with ones for your page. The selector should identify content you need, rather than a generic element that appears before the useful results.

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException

options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--window-size=1440,1000")

driver = webdriver.Chrome(options=options)
try:
    driver.get("https://example.com/search")

    results = WebDriverWait(driver, 20).until(
        EC.visibility_of_element_located((By.CSS_SELECTOR, "main .results"))
    )

    print("URL:", driver.current_url)
    print("Title:", driver.title)
    print("Results:", results.text)
    print(driver.page_source)
except TimeoutException:
    print("Timed out waiting for the results container")
    print("URL:", driver.current_url)
    print("Title:", driver.title)
    print(driver.page_source)
    driver.save_screenshot("timeout.png")
finally:
    driver.quit()

The 20-second timeout is an example for this code, not a universal wait duration. Choose a limit appropriate to the application and environment. A fixed sleep can be too short on a slow run and waste time on a fast one; a condition-based wait continues as soon as the expected state appears and gives a useful failure when it does not.

Choose the condition carefully

  • Element exists: useful when presence in the DOM is enough, even if the element is hidden.
  • Element is visible: appropriate when the script needs displayed content or must interact with it.
  • Application-specific state: when the site exposes a reliable completion marker, wait for that rather than assuming that any one element means all work is finished.

Do not add several arbitrary sleeps to make a flaky run appear reliable. Identify the state the next action requires and wait for that state.

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.
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.
  • 14" HD Display: 14.0-inch diagonal, HD (1366 x 768), micro-edge, anti-glare. See your digital world in a whole new way. Enjoy movies and photos with the great image quality and high-definition detail of 1 million pixels.
  • Memory & Storage: 4 GB LPDDR4x & 64 GB eMMC Storage. Adequate high-bandwidth RAM to smoothly run multiple applications and browser tabs all at once. An embedded multimedia card provides reliable flash-based storage.
  • Ports:2 x USB 3.0 Type-A,1 x USB 3.0 Type-C,1 x HDMI,1 x Headphone Jack
  • Chrome OS: Chromebook is a computer for the way the modern world works, with thousands of apps. Enjoy the seamless simplicity that comes with Google Chrome and Android apps, all integrated into one laptop. It’s fast, simple, and secure.

Understand Selenium’s page-load strategies

Selenium’s normal, eager, and none strategies control when navigation returns. They do not replace an explicit wait for asynchronous application content.

Strategy Navigation milestone What it means for your script
normal Waits for the load event / complete ready state. Initial resources have loaded, but application rendering or data requests may still be pending.
eager Waits for DOMContentLoaded / interactive. The DOM is available sooner, while more resources may still be loading.
none Does not wait for a loading milestone. Your script must deliberately wait before reading or interacting with the page.

Set a strategy only when its navigation behavior suits the task; keep a separate explicit wait for the content your script needs. A faster return from get() is not proof that the application is ready.

Capture evidence immediately after navigation

When the expected content is missing, collect a small diagnostic bundle at the failure point. Save it before closing the driver or retrying, so redirects and transient error states are not lost.

  1. Record driver.current_url and driver.title. Compare the final URL with the one you requested; a redirect can lead to a login page, an error route, or another unexpected destination.
  2. Save driver.page_source and a screenshot. The source shows the current DOM serialization, while a screenshot shows what Chrome displayed at that moment.
  3. Note the exact wait condition and whether it timed out. A timeout for a results selector is more informative than a general statement that navigation returned an empty page.
  4. Record the runtime details: Chrome version, ChromeDriver version, Selenium binding version, operating system and user, Chrome binary path, arguments, proxy configuration, and page-load strategy.

Interpret the evidence together. A non-empty source with a blank-looking screenshot may indicate a display or styling issue. A page source containing a challenge or login screen is not an empty document; it is a different page state. A changed URL points toward a redirect worth investigating before changing Chrome flags.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • 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.

Check frames, shadow DOM, and site-specific states

If the page source contains content but Selenium cannot find the expected element, check where the element lives. Content inside an iframe is not located as though it were in the top-level document: switch to the relevant frame before searching, then return to the default content when finished. Sites may also place content in shadow DOM, which requires locating the relevant host and accessing its shadow root using the APIs available in your Selenium binding.

Authentication redirects and bot-detection responses are other possibilities to verify against the target site’s actual behavior. A page may render a sign-in view or a challenge instead of the expected content. Inspect the captured URL, title, source, and screenshot rather than treating every such result as a Chrome rendering failure.

Verify Chrome, ChromeDriver, and startup conditions

The Chrome and ChromeDriver major versions must match. Check the versions of the binaries actually used by the run, not only the versions you intended to install. A different binary earlier in the system path or a Selenium configuration that points to another Chrome executable can make local version checks misleading. ChromeDriver’s startup log can help identify which browser binary was launched.

On Linux, running Chrome as root is a documented startup-crash risk. ChromeDriver troubleshooting identifies root execution as a common cause of Chrome crashing during startup. Prefer running the browser as a regular user. The --no-sandbox option is a discouraged, unsupported workaround, not a routine fix for an empty page; do not add it without understanding the security and environment trade-offs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11
  • 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.

Enable ChromeDriver logging and run the same Chrome binary directly under the same account when investigating startup failures. This separates browser startup problems from page-rendering problems. Record the logs and environment rather than changing several flags at once.

Compare headless and visible runs systematically

If the page works with a visible browser but not in headless mode, run both with the same URL, account, browser binary, driver, and as many matching options as possible. Then compare the evidence rather than assuming that headless mode disables JavaScript.

  • Viewport: set a deliberate window size. Responsive layouts can show different elements at different viewport widths or heights.
  • User profile and permissions: check whether the runs use the same profile and have comparable access to required files, downloads, and other resources.
  • GPU and other flags: compare arguments and remove unnecessary flags one at a time. Avoid accumulating old flags without evidence that they apply to the current Chrome version.
  • Site response: compare the final URL and rendered page. The site may treat the two runs differently, including returning a bot check.

For modern Selenium, use the documented headless argument --headless=new where appropriate. Chrome’s headless behavior has changed across versions, including changes to the old headless shell, so do not assume a flag or workaround from an older setup remains applicable.

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

Common symptoms and what to check

Symptom Likely area to investigate Next check
The page source has a shell but no results. Asynchronous rendering or data loading. Wait for a results-specific element or other application-ready condition.
The URL or title is unexpected. Redirect, sign-in, error route, or site challenge. Inspect the captured final URL, source, and screenshot.
The element appears in a frame but is not found. Frame context. Switch into the relevant iframe before locating the element.
Chrome exits or fails before the page is usable. Startup environment, permissions, binary selection, or version mismatch. Read ChromeDriver logs, verify the launched binary and versions, and test as a regular user on Linux.
Visible mode works, headless mode does not. Different viewport, profile, permissions, flags, or site response. Compare the two runs systematically and inspect what the site actually returned.

Or skip the browser setup

If your goal is simply to capture a website rather than control a browser session, ScreenshotNeo provides a screenshot API and MCP server for developers. One GET request can return a PNG, JPEG, WebP, or PDF; its documentation is at screenshotneo.com/docs.

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.
Best Value
Sale
15.6 Inch Laptop with FHD display, 6GB RAM 128GB Storage Expandable 512GB
  • Portable Lightweight Design: Weighing just 3.6 lbs, the Laptop S7HI is portable, making it perfect for travel, work, and school. Its slim profile and 15-inch HD IPS display offer a great balance of size and portability for everyday use
  • Powerful Processor: With a base frequency 1.9GHz Intel 5205U processor, this laptop handles multiple tasks efficiently. Whether you're working, studying, or streaming, enjoy a smooth experience with reliable performance
  • Ample Storage with Expansion: 128GB of internal storage with an extra 512GB expansion slot offers plenty of room for your documents, photos, and videos. Ideal for students and professionals needing more space for files and projects
  • Pre‑Installed Windows 11: Ready to Use Comes with a genuine Windows 11 system pre‑loaded, offering a clean, intuitive interface and broad software compatibility. Open the box, power on, and you're all set for school assignments, business reports, or daily computing needs.
  • Comprehensive Connectivity Options: Equipped with Type-C, HDMI, SD Card Reader, and more, this laptop offers flexible connectivity. Stay connected via dual-band WiFi and Bluetooth 4.2, ensuring fast internet access and peripheral support
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 or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and each response reports the page verdict and billing status in X-Page-Verdict and X-Billed headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo’s free plan to try it without a card.

Frequently Asked Questions

Does headless Chrome disable JavaScript?

No. Modern Chrome headless shares Chrome’s browser code. A missing result is not, on its own, evidence that JavaScript is disabled.

Should I always use `–no-sandbox` in a container?

No. It is a discouraged, unsupported workaround. Prefer a regular user and diagnose startup conditions before considering environment-specific changes.

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.