Skip to main content
SeleniumDecoded
All Chapters Chapter 4

Waits & Synchronization

Handle dynamic content with implicit, explicit, fluent, and custom waits plus page load strategies

  1. 1

    Implicit Waits

    Understand implicit waits, their global behavior, and when to use them versus explicit waits.

    Selenium 3 & 4 Medium
  2. 2

    Explicit Waits

    Learn to use explicit waits in Selenium to handle dynamic content and avoid flaky tests.

    Selenium 3 & 4 Stable
  3. 3

    Fluent Waits

    Configure advanced wait behavior with polling intervals, ignored exceptions, and custom messages.

    Selenium 3 & 4 Stable
  4. 4

    Expected Conditions

    Use built-in expected conditions for common wait scenarios like visibility, clickability, and text presence.

    Selenium 3 & 4 Stable
  5. 5

    Page Load Strategy and Timeouts

    Control when driver.get() returns with normal, eager and none strategies, set the three session timeouts (page load, script, implicit), and combine them with explicit waits for fast, stable tests.

    Selenium 4 Stable
  6. 6

    Custom Wait Conditions

    Write your own expected conditions with lambdas and classes, wait for attribute and text changes, element counts, JavaScript state, network idleness via BiDi, and compose conditions cleanly.

    Selenium 4 Stable