Fail Proof Ways to Run Beautiful Tests Regardless Of Browser Choice
summary
Shows how to move tests from local Selenium to a cloud-based Selenium Grid (Sauce Labs) and why the key is using explicit waits (and avoiding implicit waits and sleeps). Recommends putting wait logic in a base page object, uses the clickable expected condition, and limits waits to ~10s. Demo runs 51 tests across 17 environments (Windows, OS X, Linux, Chrome/Firefox/IE/Edge/Safari, emulators and real Android/iPhone devices) and passes when waits are correct and fails when they are not.
AI-written summary · about
chapters (14)
- 0:00Introduction and sponsors
- 2:07Meet the speaker Kevin Berg
- 3:32Selenium overview refresher
- 7:16Problem with cross-browser tests
- 10:12Why cross-browser testing matters
- 13:50Core problems in browser testing
- 15:15Solutions for timing issues
- 18:54Avoiding sleeps and implicit waits
- 21:09Mixing waits causes issues
- 22:14Best practices for waits
- 25:00Demo setup and environments
- 27:12Running tests across browsers
- 28:38Demo results and analysis
- 30:02Q&A on test maintenance
