Tuesday, November 18, 2008

Selenium Automation

Selenium IDE:


Selenium IDE is an integrated testing Environment for Selenium tests.Selenium IDE is an OpenQA tool available free to download. Visit the http://openqa.org/selenium-ide/download.action link to download the latest version of Selenium IDE.


How to Install Selenium IDE:


  • Open Mozilla FireFox browser, and type the above url in the browser window and click on go.
  • Click on the latest Firefox Extension hyperlink under the download subsection.
  • Click on the ‘Install Now’ button on the popup window opened. Refer to below picture:



  • After successful installation, close the FireFox and reopen the FireFox.
  • Go to ‘Tools’ option in the menu bar of the browser and we can see once option called ‘Selenium IDE’.

Getting Started:


Recording Using Selenium IDE:


  • Open Mozilla FireFox browser, go to ‘Tools’ option under Menu bar and Click on the ‘Selenium IDE’.
  • ‘Selenium IDE’ window will popup.


  • By default, it will be in recording mode.


  • Click on the first row of the ‘Command’ tag in the Table tag.




  • Enter the ‘open’ commands in the corresponding text boxes given below.


  • In Selenium IDE, we need to write the ‘open’ commands, as these commands are not recorded using Selenium IDE. Open the URL typed in the command in Selenium IDE, using the FireFox Browser.

  • Now record the test using selenium IDE. When we click on button or link or type something on the text boxes, it will recognize automatically. When u need to verify particular text to be present in the page, right click on page and choose verifyTextPresent command or verifyTitle command.



Playback Using Selenium IDE:


  • Once the recording is completed, click on the Play button available in the Menu bar of the Selenium IDE.


No comments: