~/talk

The waiting game. Designing reliable Selenium test

Talkat HUSTEF 2018 · 2018-10-29..10-31· [testing]
slides:none on file

Replaces ad hoc sleeps and retries with concrete WebDriverWait–based replacements, claiming fewer flakes and less code by turning sequences like driver.get plus sleep into a single waiter.get(url) that waits for document ready and element presence. Shows custom boolean waits (try/catch clicks) and combined actions like clickAndWaitForText, provides a Java library on GitHub for Maven/Gradle use, and describes a nasty dropdown wait that finally made a flaky test deterministic.

AI-written summary · about

  1. 0:00Intro
  2. 0:35Overview
  3. 1:43WebDriverWait
  4. 2:54Timeout
  5. 3:53Disclaimer
  6. 4:20What I waited for
  7. 5:55Waiter class
  8. 6:56Selenium comments
  9. 9:23Wait for page load complete
  10. 11:07Wait for page to load
  11. 11:34Create your own get method
  12. 12:34Click on an element
  13. 13:09How it works
  14. 15:13Element GetText
  15. 15:58Element Wait
  16. 16:39Click and Wait
  17. 17:29Opening a page
  18. 17:54asserttrue element
  19. 18:20reliable test
  20. 19:20waiting for element attribute
  21. 19:55benefits of using weights
  22. 20:16the most complicated weight
  23. 21:10Questions
~/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.