Being Good At Waiting
summary
Demonstrates concrete waiting strategies for AJAX in Selenium: uses HTMLUnit with a server delay of 0.5–4s, contrasts naive sleep with a homemade polling loop, explains pros/cons of implicit waits and the preferred WebDriver explicit wait (custom ExpectedConditions, 200ms poll). For zero–side‑effect validations shows injecting/patching JavaScript to override XMLHttpRequest and read jQuery.active; these hooks work in examples but aren’t foolproof for complex concurrent requests.
AI-written summary · about
chapters (9)
- 0:00Introduction and problems
- 1:36Categories of Ajax problems
- 2:51The naive waiting approach
- 5:00Homemade waiting patterns
- 8:14Implicit waits
- 10:50Web Driver explicit waits
- 13:45Testing zero-effect events
- 19:32Third-party library hooks
- 22:42Conclusions and Q&A
related talks
24mThe waiting game. Designing reliable Selenium test
37mDeep dive into Selenium waits
32mSleeping is not your best friend in automation
43mAsynchronous Selenium: How to Survive JS Testing
43mEliminating Illiteracy: Implicit & Explicit Waits, PageFactory
39mTesting web apps with Selenium
08mHandling Dynamic Waits in Cypress Automation Tool
01h 14mContinuous Testing
