Google+

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.





11 comments:

Unknown said...

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

Arun Motoori said...

@ Prem Kumar Thank You

Unknown 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%.

Unknown said...

Hii,

Is there any way to record test cases for Chrome browser?

Siddhesh

Arun Motoori said...

@BombayCho Shiddho - No, record & playback plugin of Selenium is only available in Firefox browser only. We cannot record and playback in Chrome browser.

Unknown said...

Do we need to understand selenium IDE to start with webdriver?

Unknown said...

Do we need to learn Selenium IDE to start with Selenium Webdriver

Arun Motoori said...

@Sanhita - Selenium IDE is not required.

Arun Subramani said...

Hi Arun,

couldn't able to download the Firefox version 54.0 for windows 10 64 bit. if i trying to download 54 then it will automatically downloading the new version. but new version cannot be support that i.e 55 on-words selenium IDE will not support. please advise for the old version Firefox.
thanks

Arun Motoori said...

@Arun Subramani - Downgrade to older version of Firefox say 47.0.1. Before downgrading stop the auto downgrades from Tools > Options of firefox. After setting this option, install the older version of Firefox i.e. 47.0.1 from http://www.filehippo.com

Reason: FireBug, Firepath , Selenium IDE and WebDriver Element locator add-ons wont work from 55 version of Firefox. Hence install older version of Firefox when you need these add-ons.