Tips From Our Codebase To Help You Write Reliable Selenium Tests

Posted Jul 26th, 2011

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:

Ignoring Open and waitForPageToLoad failures, as well as reporting pass/fail status automatically:

Reporting pass/fail status automatically on python for Selenium 2 tests:

Happy testing!

Written by

Santiago Suarez Ordoñez