For quite sometime now I’ve been trying to find something out there that would let me record my actions on a web page and then save them as a script. The idea was so that I while I was programming and debugging, I didn’t to remember or perform the recreation steps. Another reason I wanted something like this was so that I could easily just take the script and attach it to the bug. Now I don’t have to write out the recreation steps.

I know there are a lot of programs out there that can do stuff like this, but I never found one that I personally liked. Either the programs were too complex, expensive, platform specific or down right unusable. I actually was hoping that someday someone would write something for FF. My prayers have been answered.

Selenium IDE is about as simple as you can get and meets every requirement I could dream of. It’s a FF extension so it will works on both Windows and Mac; even Linux!, It’s a 2 second install, extremely easy to use and best of all FREE!

Here is a quick walk through:

To open Selenium IDE (SIDE) just choose TOOLS -> SELENIUM IDE. The interface is very simple and clean. The Base URL lets you choose which site to run the script on. This is great because you can create a script on your test site (www.example.test) and still run the script on your live site (www.example.com).

The second you open SIDE it’s ready to record your action. As you click through you site and fill in form fields, your steps show up in the center window under the TABLE tab.

selenium1.jpg

By changing to the SOURCE tab you can view the source code that makes up the task and modify it if you want.

selenium1a.jpg

You also have the option of changing the source to different programming languages. As you can see they give you the option of writing tasks in PHP, C#, JAVA and other languages. Though I haven’t done it, it wouldn’t be too much to write some code that would pull username and password from a database to pre-populate a login form. This way you could test out different roles and users.

selenium2.jpg

This just shows you a basic task whose source has been converted over to C# by choose C# from the format menu.

selenium4.jpg

Once you’ve recorded your tasks, you can save the task as a file. This is great. Now you can email the task to your buddy and he can play back the task and see exactly what problems you discovered in your web application. Excellent stuff indeed.

selenium3.jpg

Although the purpose of SIDE is for QAing applications, I can see people using it for other things as well. Imagine recording a task for your family member that shows them how to use a particular website. Maybe even to record repetitive tasks that you have to do on a company intranet site. Who knows?

The only thing that this product is missing is a scheduler. It would be nice to be able to schedule a task to run at a certain time or increment. This could be very useful to some people.

All and all this product is great. I can say anything bad about it whatsoever. It’s very easy to use and will probably take you a minutes of playing with to get the hang of it. Have fun.

4 Responses to “Selenium IDE: I’m in love (sorry Linda).”

  1. Sammy Larbi Says:

    Tony, glad you found the sweetness that is Selenium and Selenium IDE especially. =)

    If anyone is interested, I did a short (around 6 minute) screencast as a “getting started” guide a while back. You can find it at:

    http://www.codeodor.com/index.cfm/2006/11/14/Getting-started-with-Selenium/842

    Be sure and let me know if it sucks, that way I can improve the next ones. =)


  2. Thanks for putting this together. I’ve been looking at Selenium for a few months now, but just haven’t generated the energy to learn how to use it properly. I think I might have to pick this up now that I have a starting point.

    @Sammy
    Just watched your screencast as well. It definitely didn’t suck, but you may have moved a little quickly for those of us just getting our feet wet. :-)

  3. Sammy Larbi Says:

    Rob: Thanks for letting me know. I have a tendency to do that, so it’s something I’ll try to keep in mind in the future =)

  4. David Peterson Says:

    I’ve been using Selenium for a few weeks now. I’m not a fan.

    1. It’s very difficult to use for anything above trivial-level scripting. Documentation is practically non-existant.

    2. Its capabilities are remarkably limited. It only interfaces with browser-based applications. My company has a large suite of legacy windows applications that will continue to be supported for the forseeable future. Selenium is useless in those contexts. Support outside of Firefox is also extremely limited.

    3. It’s buggy and not particularily effective.

    4. The “IDE” is a pain in the ass to use.

    There are an awful lot of people out there who seem to think that Selenium is the greatest thing since sliced bread, so I’m sure I’m going to get slammed. People who enjoy writing code extensions probably think its a lot of fun. I have real work to do, and I don’t find Selenium to be a tool that helps me accomplish my tasks.

    Dave


Leave a Reply