Software Development

Selenium IDE for First Timers

This post demonstrates how to use Selenium IDE for first timers – testers and even developers.

Things You Need

Selenium IDE is an Firefox plugin that records the user actions on a web page. These actions are translated to a series of sequential commands. The basic things you need are:

  1. Firefox 50.1.0
    • Earlier version close to this might be fine.
    • This is the version used on this blog
  2. Internet connection
    • You need to download a Firefox plugin
  3. Selenium IDE 2.9.1
    • Since this is a Firefox plugin, it will not work in any other browsers.

[wp_ad_camp_1]

Install Plugin

Using your Firefox browser window, go to https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/.

Click Add to Firefox and install it.

There are many other plugins labelled “Selenium”. To make sure you use the “official” plugin, head to

and proceed to the Downloads page. Search for the Selenium IDE section which provides you the correct links to download the plugin from.

Let’s Record and Test

Page to record

We’ll use http://www.onlineconversion.com/temperature.htm to record and test some web user behavior.

[wp_ad_camp_2]

Open Selenium IDE

On your Firefox browser, go to Tools > Selenium IDE

The plugin windows opens up and already in recording mode. Now we play around with the page.

It’s Playback Time

Recording User Actions

[wp_ad_camp_3]

Executing Test Case

Saved Test Case

You may save the recorded user action to a file and load them up for later testing. For this post, you may download the saved test case from:

https://github.com/Turreta/selenium-ide-sample-test-case-ff

[wp_ad_camp_4]

 

Loading

Got comments or suggestions? We disabled the comments on this site to fight off spammers, but you can still contact us via our Facebook page!.


You Might Also Like