Monday 6 April 2015

Automation with Selenium IDE

Lesson 2- Automation with Selenium IDE.


As we have already discussed about Selenium IDE in our first lesson now in this lesson we will cover how to Install Selenium IDE and how to record and run the Selenium scripts, after that we will cover how to integrate selenium scripts with programming languages.

1-Selenium Installation Guide-

  • Before the installation of Selenium IDE make sure Firefox is installed because Selenium IDE is implemented as a Firefox extension.In case Firefox is not installed on your PC you can follow given URL for downloading Firefox latest version https://www.mozilla.org/en-US/firefox/new/ ,After downloading follow steps for installation with respect to your Operating System. 
  • Suppose you have installed Firefox / It is already installed Now Go to following URL http://www.seleniumhq.org/download/ for downloading/implementing Selenium IDE with your Firefox Browser. 
  • After opening the given URL Download the latest version of the Selenium IDE and mark permission Allow. see given below screenshot                                                                                                                     




  • Now press on the Install Now for installation.see given below screenshot    


  • After Successful installation Restart your browser and Verify that Selenium IDE plugin is installed / Integrated with your browser.For verification Open your browsers Menu then Add-Ons and verify selenium add-on in the list. see given below screenshot



2-Recording first Script with Selenium IDE-  
        After successful installation now we are ready to write/record automated scripts for web testing.
For first automation i have chosen Google site because every one is familiar and accessible this site.

Steps to created automated scripts. 
  • Click on the Selenium IDE button from the browsers toolbar and interact with the Selenium IDE scripts recorder tool.see given below screenshot where i have highlight main functionalists which we will perform.                                                                                                                                              




  • Rename your testcase name to 'Google Automation' then press on the Recording button.
  • Now open the Google site and type in the search like 'Automation testing' then Stop the Selenium IDE recording and observe that script has been recorded for the Google site. see given below screenshot                                                                                                                                        
  • After playing the entire suite you will see that script will open 'www.google.com' in new tab then will type the 'Automation testing' in the search box.  
  • Before closing Selenium IDE save your test suite at any location which can be executed later by opening in the selenium IDE.                                                                                                                                                                                                                                                             Note:  Keep visiting We will soon cover the Exporting Selenium IDE Scripts,Selenium WebDriver Scripts with java languages.




2 comments: