Google+

Like Us On Facebook


Total Pageviews

14. Record and Playback using Selenium IDE



Prerequisite - Install Selenium IDE as shown in the Post#11 Install Selenium IDE

Recording Process:

1. Launch Firefox and open Selenium IDE from Tools Menu as shown below:



2. Ensure that the Selenium IDE is launched as shown below:



3. After the Selenium IDE is launched, ensure that the Recording Button is turned on by default. (i.e. Selenium IDE is in recording mode by default on launching) as shown below:


4. While the recording button is enabled, open any website say www.google.com in the Firefox browser as shown below:


5. In the 'Google' page, click on 'I am feeling lucky' button as shown below:

6. Turnoff the 'Recording' button on the Selenium IDE to stop recording as shown below:


7. Ensure that the recorded commands are displayed under the table tab as shown below:


Playback Process:


8. Open any other site say www.yahoo.com in the Firefox browser and Click on the 'Play current test case' button on the Selenium IDE as shown below:


Click  this image to view Full Screen

9. On clicking the 'Play current test case' button, observe that the recorded commands are executed automatically in the Firefox Browser (i.e. User is taken to the www.google.com in the Firefox browser and 'I am Feeling Lucky' button is clicked automatically as shown in the below video




Note - Though 'Record and Playback' feature is helpful in some cases to the Tester, but it cant be used for automating all the tests as it has many disadvantages. If you don't know much about the disadvantages of the Record and Playback feature, you can go through the Page Record & Playback else you can continue reading the next post.





Please comment below to feedback or ask questions.

How to validate elements using Selenium IDE will be explained in the next post.




4 comments:

Prem Kumar said...

It is really useful... Thank You...

Arun Motoori said...

@ Prem Kumar Thank You

Ramprasad Panigrahy said...

Hi Arun
Your posts were really helpful.
What and how much knowledge should I have in Java language, as I am clueless about JAVA.

Arun Motoori said...

@Ramprasad Panigrahy - Core Java will be good enough. You can follow my posts on Java which cover 80% of the need. In future, I will make it 100%.

Blog Index