Selenium Testing - SPLessons

Selenium IDE

Home > > Tutorial
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Selenium IDE

Selenium IDE

shape Introduction

Before going to use selenium software, initially Java and Eclipse software should be installed. Installation procedure is going to be discussed in this chapter. Already in last chapters SPLessons have covered the overview and installation of IDE. Selenium IDE is also known as Selenium Integrated Development Environment. The main aim of IDE is to record and run the scripts. Initially it provides the script in HTML language. It is an Add-on for Firefox, it means selenium can be downloaded and installed in Firefox only. The following topics are going to cover in this chapter.

Downloading Selenium IDE

shape Step 1

Drive to this URL. Download Selenium IDE

shape Step 2

 The window will appear like this. Where click on Firewall button then following window will be displayed.

shape Step 3

Click Install button to install software.

shape Step 4

Selenium IDE is opened and scripts can be written and execute.

IDE features

shape Description

Selenium IDE is called an IDE , but foremost, it's a recording tool it means that it can record what the developer do in the web browser, and from that recording, it's going to generate some commands which are called Selenese, and these are basically Selenium commands and then one can execute those commands or play back that recording so one can execute our tests. Now in between there, one can add our own commands and can modify the commands are generated by the recording tool.

Tool Bars

shape Description

Now when user start Selenium IDE, by default, it automatically starts in recording mode. One can see that this recording button is indented and this means that the developer is actually recording and one can click this to stop our recording.

Test cases

shape Description

Selenium IDE - Test cases can be created, recorded and executed. By following  the procedures carefully test cases can be executed without any errors.  

shape Step 1

Open the Selenium IDE. To open selenium IDE, user need to search web developer search box, in the Selenium URL bar user can simply place any web site URL. Which operations are done by the users will be visible in IDE.

shape Step 2

Press the Record button. Record button by default in the active mode, it can directly retrieve the URL information.

shape Step 3

The Recording window is shown as below. Now Selenium IDE has generated some steps to understand, some commands, So these are called Selenese and Selenese is basically just a language that is language independent mean by that is it's not C-Sharp, Java, not anything. It is a general syntax and there is various implementations of that. And actually the recorder uses an html table to lay out the commands.

shape Step 4

Test Case is executed. Here just click on the running button to pass the request whether the test is passed or not.

Summary

shape Key Points

  • The HTML is the default Selenium Command.
  • All the locator values are obtained by Firebug.
  • Selenese is basically just a language that is language independent
  • Click command is utilized when user might want to press on elements such as Text box, Link.
  • clickAndWait will wait for a particular page to load until the next one is performed.