Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon 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

Selenium Waits: Types, Examples, and How to Use Them

Use explicit waits for specific page conditions, implicit waits for deliberate session-wide element lookup delays, and avoid combining the two.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use an explicit wait for a specific browser condition, such as an element becoming visible or a page title changing. An implicit wait applies a timeout to element lookups across the WebDriver session. In Java, a FluentWait lets you tune polling and ignored exceptions; Python’s WebDriverWait offers corresponding options. Do not combine implicit and explicit waits: Selenium warns that their timing can become unpredictable.

Which Selenium wait should you use?

Wait Scope What it waits for Use it when
Implicit Element-location calls across the WebDriver session An element can be found You deliberately want a global delay for lookups, not a particular page state
Explicit A condition at a specific point in the test A defined condition, such as visibility, staleness, text, or title content The test must wait for a dynamic state before continuing
FluentWait A configured wait and its condition; Java API A condition checked at a configurable polling interval, with chosen exceptions ignored You need to control polling or ignored exceptions

In Python, WebDriverWait is the explicit-wait class and also accepts polling and ignored-exception options. Selenium documents its default poll interval as 0.5 seconds and its default ignored exception as NoSuchElementException in the Python 4.50.0 API documentation.

How an implicit wait works

An implicit wait sets a session-wide timeout for element-location operations. If the requested element is found, the lookup returns and the test continues; otherwise, the lookup can wait up to the configured timeout. Selenium documents the default as zero.

Python

driver.implicitly_wait(2)

Java

driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(2));

These examples set a two-second implicit wait. Use this approach only when a global lookup delay is actually intended. An implicit wait does not express whether an element is visible, clickable, or displaying particular text; use an explicit condition for those requirements.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

How to use an explicit wait

An explicit wait repeatedly evaluates a condition and proceeds when that condition succeeds. If it does not become true before the timeout, the wait times out. This makes explicit waits useful for pages where elements or states appear after navigation, rendering, or other browser activity.

Wait for an element to become visible in Python

from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait

wait = WebDriverWait(driver, timeout=10)
element = wait.until(EC.visibility_of_element_located((By.ID, "revealed")))
element.send_keys("Displayed")

The 10-second timeout is an illustrative choice, not an official Selenium recommendation. The condition locates the element by ID and waits for it to be visible before sending text.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Wait for a custom condition in Python

wait.until(lambda driver: driver.find_element(By.ID, "status").text == "Ready")

The callable supplied to until should return a truthy value once the required state is reached. In the Python API, until returns the successful call’s value; if it does not receive a truthy result before the timeout, it raises TimeoutException.

Choose a condition that matches the test

Selenium’s Expected Conditions include checks for element existence, staleness, visibility, visible text, and title content. Pick the condition that represents what the next test action actually requires: finding an element is not the same as confirming it is visible.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

How FluentWait and polling work

Java FluentWait example

Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)
    .withTimeout(Duration.ofSeconds(2))
    .pollingEvery(Duration.ofMillis(300))
    .ignoring(ElementNotInteractableException.class);

WebElement element = wait.until(d -> d.findElement(By.id("target")));

This demonstrates the Java API’s configuration points: total timeout, polling interval, and exceptions to ignore while evaluating the condition. The two-second timeout and 300-millisecond interval are demonstration values, not universal settings. Ignore an exception only when retrying after that exception is appropriate for the condition; otherwise the wait can obscure the reason an operation failed.

Python WebDriverWait options

Python’s WebDriverWait constructor provides polling and ignored-exception options as well. Its documented defaults in Selenium 4.50.0 are a 0.5-second polling interval and NoSuchElementException ignored. These are Python binding defaults; do not assume another language binding has the same defaults or API.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why you should not mix implicit and explicit waits

Selenium’s guidance is direct: “Do not mix implicit and explicit waits.” An explicit condition may perform element lookups, and those lookups can themselves inherit the implicit timeout. That interaction can make elapsed time unpredictable. Selenium illustrates the issue with a 10-second implicit wait combined with a 15-second explicit wait: the timeout can occur after 20 seconds. Treat that as Selenium’s example, not a precise wall-clock guarantee for every test.

For condition-driven tests, keep the implicit wait at its default of zero and use explicit waits where needed. If you use an implicit wait intentionally, avoid wrapping lookups in explicit waits.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Binding differences to check

Selenium APIs are not identical across languages. The Expected Conditions guide notes that .NET stopped supporting Expected Conditions in Selenium 4; Ruby commonly uses blocks or lambdas. Check the documentation for the language binding and version your test suite actually uses rather than copying a Python or Java example unchanged.

Common wait problems and fixes

  • The wait times out although the page eventually looks ready: make the condition reflect the actual prerequisite for the next action, and confirm the locator identifies the intended element. A wait for presence alone does not establish visibility.
  • The test takes longer than the explicit timeout suggests: check whether an implicit wait is also set. Nested element lookups can add their own waiting, so mixed waits do not provide a reliable combined elapsed-time limit.
  • A custom Python condition never succeeds: ensure the callable returns a truthy result when the state is ready. A comparison that remains false causes until to keep waiting until it times out.
  • An exception keeps appearing during polling: inspect whether it is appropriate to ignore that exception. Python ignores NoSuchElementException by default; Java FluentWait can be configured with ignored exceptions. Ignoring unrelated failures can hide the real defect.
  • An example’s class or method is unavailable: verify the binding and version. In particular, Expected Conditions support differs by language, and .NET does not support those classes in Selenium 4 according to Selenium’s guide.

ScreenshotNeo alternative for screenshot capture

Selenium waits are for synchronizing browser tests with page states. If the task is to capture a website image or PDF rather than drive a test browser, ScreenshotNeo is a separate screenshot API and MCP server for developers; it is not a Selenium wait library.

Or skip the browser setup

One GET request can return a screenshot. See the ScreenshotNeo API documentation for request options.

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

ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before the shot. Bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.

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

Sign up for free ScreenshotNeo access.

Documentation and version context

The Selenium WebDriver waiting-strategies guide was reported modified on 2026-09-16, and the Expected Conditions guide on 2025-07-29. Python defaults cited above are from Selenium 4.50.0 API documentation. Since bindings and APIs can change, confirm details against the documentation for the Selenium version and language in your project.

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 *

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.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.