~/talk

Being Good At Waiting

Talkat SeleniumConf 2012 London · 2012-04-16..04-18· [testing]
links:none on file
slides:none on file

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

  1. 0:00Introduction and problems
  2. 1:36Categories of Ajax problems
  3. 2:51The naive waiting approach
  4. 5:00Homemade waiting patterns
  5. 8:14Implicit waits
  6. 10:50Web Driver explicit waits
  7. 13:45Testing zero-effect events
  8. 19:32Third-party library hooks
  9. 22:42Conclusions and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.