Tips From Our Codebase To Help You Write Reliable Selenium Tests

As part of our new "Test Like A Ninja Webinar Series," I held an improv webinar last week that covered how to write better Selenium tests. Most of the content came from my own Selenium experience, as well as experience gleaned from working on our own customers' issues. Without further ado, here's the video:

And here are some of the code snippets I talked about:

Implicit waits in Selenium 1: https://gist.github.com/1107375.js?file=implicit_wait_selenium.py

Ignoring Open and waitForPageToLoad failures, as well as reporting pass/fail status automatically: https://gist.github.com/1107711.js?file=selenium_test_case.py

Reporting pass/fail status automatically on python for Selenium 2 tests: https://gist.github.com/1107750.js?file=selenium2_test_case.py

Happy testing!

Written by

Santiago Suarez Ordoñez

Topics

Selenium