Thursday 14 February 2013

Record the script using selenium IDE plug-in

This post will help the beginner how to record and convert the test case. Before moving into to the steps to record the script make sure Selenium IDE plug-in is installed in firefox browser. Once its done lets begin how to record the script.

Steps to record script using Selenium IDE:

  1. Open the Firefox browser
  2. Click on "Tools" tab
  3. Click on "Selenium IDE" option or use the "Ctrl+Alt+S" to open the selenium IDE
  4. Selenium IDE will be in record mode once its started
  5. Open the URL and execute the scenario which need to be recorded

Note: Do not make any other action in firefox while recording the script.

Save and Convert the recorded script:
  1. Once the scenario is recorded using selenium IDE click on "File" tab
  2. Click on Save Test case
  3. Choose the location, specify the name and change the save as type to HTML format
  4. Click on Save button
  5. Again click on File tab
  6. Choose Batch Convert Testcases-->Java/Junit 4/Remote Control
  7. Choose the script which was saved in HTML format and click on open
  8. Alert popup will be triggered saying "Converted 1 Test case"








No comments:

Post a Comment