Selenium IDE

Selenium IDE (Integrated Development Environment) is the simplest tool in the Selenium Suite. It is a Firefox add-on that creates tests very quickly through its record-and-playback functionality. This feature is similar to that of QTP. It is effortless to install and easy to learn.

Though you will be able to use Selenium IDE without prior knowledge in programming, you should at least be familiar with HTML, JavaScript, and the DOM (Document Object Model) to utilize this tool to its full potential. Knowledge of JavaScript will be required when we get to the section about the Selenese command “runScript.”

Selenium IDE supports autocomplete mode when creating tests. This feature serves two purposes:

  • It helps the tester to enter commands more quickly.
  • It restricts the user from entering invalid commands.

IDE Installation:

  • Enter the URL that you want to test in base URL tab
  • Start recording
  • Navigate to firefox and perform test cases and all navigations
  • After performing all the test testcases, navigate back to the selenium IDE and stop recording
  • Observe that all the actions performed on the test site are recorded as a test case in selenium

  • The recording consists of 3 main components
    1. Command – Ex: Click, wait etc
    2. Target – Xpath or css of the field
    3. Value – Inputvalue for the field
 
  • Save the recorded test script and play when ever necessary.

Leave a Reply

Your email address will not be published. Required fields are marked *