October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober 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

Selenium Page Load Strategies: How to Control Page Loading

Selenium’s pageLoadStrategy sets the document-readiness point for navigation. Compare normal, eager, and none, configure the session, and avoid flaky tests with condition-based waits.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Selenium’s pageLoadStrategy controls when a navigation command returns: normal waits for document readiness complete, eager for interactive, and none skips the document-readiness wait. It does not tell you whether a dynamic application or a specific element is ready; use condition-based waits for that.

What Selenium’s page load strategy changes

The strategy is a browser-session option that sets the document-readiness threshold WebDriver uses during navigation. It changes when Selenium continues past navigation, not how quickly the browser downloads resources or runs the site’s code. The setting applies to the entire WebDriver session, not just one navigation.

As an Amazon Associate I earn from qualifying purchases.

Strategy Readiness threshold What to expect
normal complete Default. Navigation waits for the page’s conventional load completion, including resources in its normal load sequence.
eager interactive Navigation can return once the DOM is available for access. Other resources, such as images, may still be loading. “Interactive” here is the document readiness state, not a guarantee that the whole page is usable.
none No document-readiness gate Navigation does not block on document readiness. Navigation activity may still be underway, so the test must wait for the state it needs before interacting.

Selenium documents these mappings in its browser-options guide.

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

Choose a strategy based on what the test needs

  • Use normal as a starting point when the test relies on conventional navigation completion, or when your team has not established reliable explicit waits.
  • Consider eager when the DOM is enough to begin the next step and waiting for remaining resources does not help the test. Still wait explicitly for the relevant page condition.
  • Use none only with deliberate synchronization when the test can reliably wait for the required state after navigation. Issuing element commands immediately can create races.
  • For dynamic applications, keep a suitable strategy and add explicit waits. Changing the navigation threshold alone cannot establish that an asynchronous request or client-side update has finished.

These are practical choices based on Selenium’s documented behavior, not a promise of a particular speedup. The result depends on the page and test, and no universal performance gain follows from choosing eager or none.

Set the strategy before creating the driver

Configure the value in the browser options used to create the WebDriver session. Here is a Python example using Selenium’s options API:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.page_load_strategy = "eager"  # "normal", "eager", or "none"
driver = webdriver.Chrome(options=options)

try:
    driver.get("https://example.com")
    print(driver.title)
finally:
    driver.quit()

Replace eager with normal or none as appropriate. The exact spelling of the options property varies by language binding; Selenium’s Python API exposes page_load_strategy and accepts these three values. This is a session setting rather than a per-navigation switch. Check the current documentation for your Selenium binding, browser, driver, and versions; the shared definitions do not establish identical behavior in every browser-driver combination.

Why “page loaded” does not mean an element is ready

A document’s readyState reports document loading progress. It does not certify that a single-page application has completed its JavaScript requests, rendered a particular component, or made the next control usable. Selenium’s waiting-strategies guide describes the race that results when the next command runs before the required state is reached.

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

Wait for the condition that matters to the next action—for example, the target becoming visible or clickable—after navigation or after a state-changing click. Do not treat normal as a guarantee that the application is fully usable, or eager as a guarantee of broad user-facing interactivity.

Page-load timeout is a separate setting

The page-load timeout limits navigation events in conjunction with the selected strategy. Selenium’s browser-options documentation states a default of 300,000 milliseconds for a newly created session; treat that as version-sensitive and check the documentation for your installed Selenium and driver when the exact default matters. If navigation exceeds the configured or applicable default limit, Selenium stops the script with a TimeoutException.

This timeout is not the implicit wait used for element location, nor the script timeout used for asynchronous scripts. Those settings address different operations; changing one does not substitute for configuring the others. See also Selenium’s JavaScript timeouts API reference.

Troubleshoot slow or flaky navigation

  • Navigation returns, but an element is missing: The document reached the configured readiness threshold, but the application-specific condition may not be ready. Add an explicit wait for the element’s required state.
  • The test races after choosing none: The strategy removes the document-readiness gate; it does not supply synchronization. Wait for a meaningful condition before issuing element interactions.
  • The test still waits after choosing eager: eager targets document state interactive; it does not skip all navigation waiting or guarantee that the application has completed its work.
  • A page-load timeout occurs: Navigation exceeded the page-load timeout. Check whether the page or its load sequence is actually expected to finish, then review the timeout and strategy together. Do not assume an element wait or script timeout controls this navigation limit.
  • The setting is rejected or behaves differently than expected: Confirm that the value is one of normal, eager, or none, and verify the options syntax and behavior for the installed Selenium binding, browser, and driver versions.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your goal is to obtain a website screenshot rather than automate browser interactions, ScreenshotNeo provides a screenshot API and MCP server. A single request can return a PNG, JPEG, WebP, or PDF. For example, this cURL request saves a WebP screenshot of the target URL:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for options. It accepts and removes cookie/consent banners, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

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

Frequently Asked Questions

Can I change pageLoadStrategy for just one driver.get() call?

No. Selenium applies the strategy to the WebDriver session, so set it in the browser options before creating the driver.

Does pageLoadStrategy make a website load faster?

No. It changes when WebDriver returns from navigation, not the browser’s underlying network or rendering speed.

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

Which strategy should I use for a single-page application?

There is no universal choice. Select the navigation threshold appropriate to the test, then explicitly wait for the application condition needed for the next action.

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.