ExpectedConditions is a Selenium utility class containing predefined predicates for synchronizing browser tests with changing page state. Used with WebDriverWait, it prevents assertions from running before asynchronous UI changes complete. section 10.2.15
Wait for a transient success message
After login, wait up to five seconds for the `.toast-success` element to become visible, then retrieve its text and assert the expected email. The wait can return the element directly, allowing immediate interaction. section 10.2.15
ExpectedConditions handles common synchronization needs; more specific behavior can use a custom wait function. Selenium conditions can also be accessed while expressing waits through Screenplay tools. section 10.2.15 section 12.5.3
