Getting started with Selenium IDE - Part 1

Wednesday, 11 July 2007

Posted by Sébastien Lachance with Comments (0)

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




blog comments powered by Disqus