Thursday, July 2, 2009

Using Selenium IDE

Using Selenium IDE


Selenium IDE is a Firefox add-on that makes it easy to record and playback tests in Firefox 2+. You can even use it generate code to run the tests with Selenium Remote Control.

Things you will need

    • Selenium IDE
    • Firebug

Bothe of above come as Firefox add-ons.

Selenium issues

  • Many JavaScript frameworks generate lots of html tags with auto generated ids. Such pages are difficult to record.
  • In some cases html elements ids changes between user sessions


  • Explicitly mention id wherever possible
  • Give explicit id to html tags like :-
    • input
    • image
    • anchor
    • button

Two important question

  1. What command to use?
  2. On which element (target)?

There answers

  1. Selenium Documentation

  1. X-path Basics

How to go about it?

No comments:

Post a Comment

Was the information useful?