Far Away Developer

Sebastien Lachance

Getting started with Selenium IDE - Part 1

Posted by Sebastien Lachance on July 11, 2007

As promised, I will return back everything I have learned about Selenium. I invite you to go the OpenQA web site for additional information.

If you stick with me for this series of article, you will get a great quick start to create good acceptances tests.

Selenium IDE (Integrated Development Environment) is a Firefox extension that records your actions on a page. Then you can execute them back with the IDE or with other version of Selenium (Selenium Remote Control is one of them).

First step : Download Firefox

Second step: Install Selenium IDE extension on your browser

(If , for some reason, the Selenium IDE can’t replay your test, switch to a previous version.)

Third step : Record your first test

  • In Firefox, go to Tools\Selenium IDE.
  • Make sure the record button is pressed.
  • Navigate on the web application.
  • Press the green arrow (start button).
  • Your first test is done.

Now, maybe the replay has not worked and you got some errors. This will be covered in the next post when I will show you how to add others commands to your Selenium test.

Here is some features found in the interface:

  • There is the baseURL text field. Suppose you have two times the same web site, you want to have this attribute because you will avoid hard coding the path in the test. Simply specific another baseURL and the test will be performed on it.
  • Run/Walk/Step. This is basically the speed at witch the test will be executed. However, Step will require you to press the “Step” button to go line by line. Very useful.
  • Of course you can save the test, juste press Ctrl-S or go to File/Save Test.
  • Table/Source tabs. Basically, a test is just an html file (not entirely true, you will see later), composed of a table element, and 3 columns (each one has a specific purpose).
  • Play with Selenium Test Runner. This will launch a test runner for your test (will be covered later).

A lot more is possible and this is only the beginning.

If you find missing information, just leave a comment, and I will update the post.

Selenium IDE Getting Started Series

4 Responses to “Getting started with Selenium IDE - Part 1”

  1. Getting started with Selenium IDE - Part 1 | Aktif Blog | Blogdan Al Haberi Says:

    [...] Sebastien Lachance [...]

  2. Steve Trefethen Says:

    Good post. I too have found Selenium to be an excellent testing tool for web applications and have blogged about it as well.

  3. Getting started with Selenium IDE - Part 2 « Sebastien Lachance Says:

    [...] Posts Requested Service not foundCommandField and ButtonType="Image"Getting started with Selenium IDE - Part 1First experience with Visual Studio 2008Getting rid of intellisense addictionTower Defense Games30 [...]

  4. Hagga Says:

    And how do you save the results from the test?

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>