Tuesday, 1 April 2014

Record | Play | Modify script in Selenium IDE

In this blog, will cover how to record, play and modify the recorded script in Selenium IDE. In this section will record a login sequence to an application, run the recorded script from IDE and modify username and password and run it again with modified values.

To install Selenium IDE, please read my previous post 'Installing Selenium IDE'

Start Recording:
  • Launch Firefox and open Selenium IDE from Tools menu (Ctrl + Alt + S keyboard shortcut)

  • Verify recording button status: Mouser over recording button should show text 'Now recording: Click to stop recording'.
  • Sequence: Now let’s record the login sequence to an application (Gmail)
    • Access application URL 'www.gmail.com'  in browser
    • Enter username and Password.
    • Click Sign-in button

  • Switch to Selenium IDE: Table tab- You will observe few Commands with their Targets/ Values
  • Stop recording:Click on recording button to stop recording. After clicking, mouse over the button should show text 'Click to record'

Play Recorded script: 
From Action icons click on icon which say ‘Play current test case’(just make sure your Firefox instance should be running).


Modify the script and Play: 
Selenium IDE - Table tab : Click on target you want to modify let’s say user’s  Email id and password.
  • Before modification:

  • After modification:


  • Play Modified script: From Action icons, click on icon which say ‘Play current test case’(just make sure your Firefox instance should be running)

No comments:

Post a Comment