Skip to main content

Quick start with Selenium IDE

Introduction to Selenium IDE:

The Selenium-IDE (Integrated Development Environment) is

  • Firefox extension tool
  • IDE for Selenium Tests
  • Auto complete common selenium commands
  • Record & Playback
  • Save/Export/Load tests
  • Export tests in different formats like HTML, Java etc.
  • The tests can then be run against most modern web browsers(IE, Chrome,Safari)
  • Selenium deploys on Windows, Linux, and Macintosh platforms.
  • It is open-source software

Installing Selenium IDE:

Step1: Using Firefox, first, download the IDE from the SeleniumHQ downloads page
When downloading from Firefox, you’ll be presented with the following window.

IDE_Installation
Step2: Select Install Now.

The Firefox Add-ons window pops up, first showing a progress bar, and when the download is complete, displays the following.

NewIDE_Installation
Opening Selenium IDE:

To run the Selenium-IDE, simply select it from the Firefox Tools menu. It opens as follows with an empty script-editing window and a menu for loading, or creating new test cases.
StartIDE

If you are using latest Firefox browser,  we can see selenium IDE indexed under menu bar -> Web Developer -> Selenium IDE. Or  see a small icon(below marked) in tool bar.

SeleniumIDE_Launch

Test Suite:

A test suite is a collection of tests. Often one will run all the tests in a test suite as one continuous batch-job.

When using Selenium-IDE, test suites also can be defined using a simple HTML file. The syntax again is simple. An HTML table defines a list of tests where each row defines the filesystem path to each test.

Steps for creating test suite:

  1. Create more Tc’s save each Test Case with <.html> extension.
  2. Open Firefox
  3. Open Tools à Selenium IDE
  4. File à Open à new Test Suite
  5. File à Open à Add Test cases
  6. Add more test cases
  7. Save Suite with <.Html> extensions.

You can change the name of the test cases, Add, Remove, and Rename test cases and  Arrange order of test cases.

Useful Selenium  FireFox Add-ONS:

  • Chris Pederick’s Web Developer toolbar
  • XPather
  • Firebug
  • Xpath Checker
  • Regular Expressions Tester
  • JavaScript Debugger
  • Web Developer
    • HTML Validator
    • ColorZilla
    • DOM Inspector

 User Extensions:

User extensions are JavaScript files that allow one to create our own customizations and features to add additional functionality.

There are a number of useful extensions created by users.

Perhaps the most popular of all Selenium-IDE extensions is one which provides flow control in the form of while loops and primitive conditionals. This extension is the goto_sel_ide.js.

  • Steps:
    1. Download goto_sel_ide.js file.
    2. Save into selenium core extensions folder
    3. Selenium-IDE’s Options=>Options=>General tab
    4. Browse extension file

SeleniumIDE_jsextension