Executing first test case in Selenium IDE – User friendly Tech help

We are done with basic overview of Selenium IDE and its installation,now we are sailing towards writing our first test case in Selenium  IDE.
n
nAutomation Scenario:-
n
1.Launch Gmail Application
n2.Fill wrong values of Email and Password
n3.Click “Sign in” button
n4.Verify the Error Message
n
nRemember our flow will consist of “Record” ->”Playback”
n
nSolution:-
n
nStep1:-

n

    n

  • Launch Firefox,open Selenium IDE(ALT+CTRL+S)
  • n

  • Type the URL of the Application (“https://accounts.google.com/ServiceLogin?service=mail&continue=https://mail.google.com/mail/”)
  • n

  • Start with recording 
  • n

n

n

n

n

n

n

n

n

Selenium IDE start recording

n

nStep2:-

n

    n

  • Open the Application in Firefox.
  • n

  • When application page launches, fill the Email and Password fields 
  • n

  • Click Sign in
  • n

n

nStep3:-

n

    n

  • Capture the error message, Right Click on the error message ->Show all available commands -> Assert Title
  • n

n

n

n

n

n

n

n

n

Adding Assert command

n

Note:- We can use Verify command also, check the difference between assert and verify.
n
nStep4:-
nStop recording and check that our script contains the following steps

n

n

n

n

n

n

n

n

Editor in Selenium IDE

n

Step5:-
nWe are done with recording part, now is the time to verify our steps by running the scripts i.e playback

n

n

n

n

n

n

n

n

Run test case

n

n

n

n

n

n

n

n

Run Results IDE

n

Step6:-
nSave the script and we are done with our first test case using Selenium IDE
n
n
nNote:- 

n

    n

  • We can have additional debugging facilities using “Power Debugger” add-on
  • n

  • We can create the above script manually also rather than recording it.But “record and playback” is really helpful for beginners after that they can move to advance features.
  • n

  • We are not digging much deeper into the functionality or commands of IDE as this is just used for kick starting with selenium.Our main focus is Selenium Webdriver which is used in pragmatic scenario’s.
  • n

n

nPlease feel free to share your comments or learning.
n
nDo like our FB page or follow on Twitter for more updates.

Was this article helpful?
YesNo

Similar Posts