Getting Started with Selenium - Selenium Bootcamp

Learn the basics of Selenium testing, from getting started to scaling your testing, with these 8 quick lessons by Sauce Labs.

Selenium Bootcamp

QA testing with Selenium can help to dramatically improve your business' productivity by minimizing testing time, cost, and hassle. In his blog post series, Selenium Bootcamp, expert Dave Haeffner will walk you through all the necessary steps to learn how to build out a well-factored, maintainable, resilient, and parallelized suite of tests that will run locally, on a Continuous Integration system, and in the cloud.

About Dave Haeffner: Dave is the author of Elemental Selenium (a free, once weekly Selenium tip newsletter that is read by hundreds of testing professionals) as well as a new book, The Selenium Guidebook. He is also the creator and maintainer of ChemistryKit (an open-source Selenium framework). He has helped numerous companies successfully implement automated acceptance testing; including The Motley Fool, ManTech International, Sittercity, and Animoto. He is a founder and co-organizer of the Selenium Hangout and has spoken at numerous conferences and meetups about acceptance testing.

Get started with Selenium testing

Selenium is a software robot sent from the future to help us test web applications. But keep in mind that it's not one of those fancy shape-shifting robots than can run really fast. Instead it's more like one of those really strong robots that's not very fast and is best suited for accomplishing a certain objective... Read full article

Write a good acceptance test

Each test needs to be concise (e.g., testing a single feature rather than multiple features) and independent (e.g., sets up its own data rather than relying on a previous test to do it). Doing this may require a mental shift, discipline, and more up front effort. But it will make a dramatic impact on the quality, effectiveness, and maintainability of your tests ... Read full article

Writing your first Selenium test

Fundamentally, Selenium works with two pieces of information — the element on a page you want to use and what you want to do with it. This one-two punch will be repeated over and over until you achieve the outcome you want in your application — at which point you will perform an assertion to confirm that the result is what you intended ... Read full article

Reuse your test code

One of the biggest challenges with Selenium tests is that they can be brittle and challenging to maintain over time. This is largely due to the fact that things in the app you're testing change, breaking your tests ... Read full article

Write resilient test code

Ideally, you should be able to write your tests once and run them across all supported browsers. While this is a rosy proposition, there is some work to make this a reliable success. And sometimes there may be a hack or two involved. But the lengths you must go really depends on the browsers you care about and the functionality you're dealing with ... Read full article

Package for use

In order to get the most out of our tests and page objects, we'll need to package them into a more useful structure ... Read full article

Scale your tests

If you've ever needed to test features in an older browser like Internet Explorer 8 then odds are you ran a virtual machine (VM) on your computer with a "legit" version of Windows XP ... Read full article

Tying it all together

You'll probably get a lot of mileage out of your test suite in its current form if you just run things from your computer, look at the results, and inform people on your team when there are issues. But that only helps you solve part of the problem ... Read full article