Getting started with Selenium

17 Feb 2014

As a regular user on StackOverflow and one of the top answerers for Selenium, one of the most frequent issues I notice on the questions, is that people do not know how to get started with using Selenium.

First let’s discuss what selenium even is. Directly from the Selenium website,

Selenium automates browsers. That’s it!

This being said, Selenium is designed in particular for testers and other automation experts that want to automate some website.

So what about getting started?

As I said previously, not a lot of people are aware on how to get started, so I’ve actually designed a framework particularly for those users not sure where to start. Now you can use the base Selenium API, sure.. but why not use a proven solution in automation?

The Getting Started with Selenium framework was designed for users wanting to get started with selenium, and have an easy and effective method of doing so.

This framework provides a few effective modern web testing techniques including fluent interfaces.

The framework was designed to be incredibly simple and intuitive:

You can see that this test is insanely simple.

We will

  1. Simply print to the output: "Attempt: 1"; then we will
  2. Set the text of an email field using the name selector strategy, to "[email protected]"
  3. We’ll then utilize CSS selectors to click some button that does something, then
  4. After the click, something will happen. We will then just simply log to the console "Finished"

This test is very easy to follow, and intuitive.

Convinced yet?

How about this one:

This is a simple test to automate flipkart

Here we utilize some CSS selectors and some inline validation calls. Consult the readme for more information about inline validations.

I have a few people that use this framework so far as it’s a fairly new project. These people include Major League Gaming for their front-end automated regression suite!

Published on 17 Feb 2014 Find me on Twitter or StackOverflow