Selenium IDE is an integrated development environment for performing Selenium tests.
Selenium tests can be written as HTML tables or coded in various languages like PHP, C#, Perl , Python and can be run directly on browsers.
The IDE can help you to record, edit and dubug tests. Currently Selenium IDE is only available for Firefox as a add on.
Here is possible scenario for using Selenium. Imagine you have created a HTML form with about 15-20 fields and you have to repeatedly test the form.
Filling the form everytime can quickly become tedious.Using selenium you can automate the whole process and run the test as you wish.
In this part we will see how to create a simple test using Selenium.Lets start.
Step 1:Installation
Download Selenium Ide from here.
http://selenium-ide.openqa.org/download.jsp
https://addons.mozilla.org/en-US/firefox/addon/2079
Once Add-on installed Restart firefox
Step2:Running a simple test
1) Start Selenium IDE in firefox: Tools-> Selenium IDE.
You will see a pop up as below:
2)Click on red record button on the top right.
3)Brwse to Google.com and enter 'selenium' in the search box and press enter.
4)Click on the first result,which is of selenium.openqa.org
5)Stop the recording by clicking on the record button again.
You will see something like below. If you click on "source" tab you se the test html generated by selenium
The 'table' tab shows the commands recorded by selenium
6)Open a new tab in firefox and click on Selenium IDE's play button to run the recorded tests.
The IDE should play your recorded test.After the test complete you should have landed on the selenium page(http://selenium.openqa.org)
The IDE after the test run shown below.In the Log section you can see various events run by the test.In this table you will see all the rows in green, which means test ran successfully.
Now lets add a small assertion to the above test.
1)Click on the blank line below after the last ‘clickAndWait’ command and insert ‘assertTextPresent’ command from the drop down box as shown below.
You will see something like this.
This test checks to see if the text ‘Selenium News’ is present in the last rendered page.
Run the test again and you should see that the test has run successfully.
Now try replacing the text with something that is not present on the page, e.g ‘elvis’ and run the test again.
Now the test fails and you should get the screen below
You have just completed your first test run. And it was so simple
Cheers!!!
Here I have given just basic of Selenium IDE.If you required anything just comment here.
Based on that I will write my blog.


20 comments:
The above article is good for all the Selenium beginners.
Great Job Snehasish.
This website certainly has all of the information and facts I wanted about this subject and didn't know who to ask.
Feel free to visit my web blog; yahoo free web hosting
Link exchange is nothing else but it is just placing the other person's weblog link on your page at appropriate place and other person will also do same in favor of you.
Feel free to surf to my site :: iwebhostingreviews.Com
Hi there, You have done an excellent job.
I will definitely digg it and personally recommend to
my friends. I'm confident they'll be benefited from this web
site.
Also visit my page ... dot5hosting Reviews
This 's, why common people often fantasize the lives in the celebrities and in order to get the most of the life and lifestyle with the celebrities, they keep a stern eye about the page 3 in the newspaper and different magazines to have access to the newest celebrity news and gossip. This certification is surely an allied health professional certification course that assists to find out how it works in the using exercise and also with the clinical physical activity at the same time as while using pathological situation that is been showed to functional benefits. Before traveling on the fringes of evolutionary specialization, however, we'll start with hum drum humans.
My sitе: exercise physiologist salary us
Wow, fantаstic blog layout! How long have yоu bеen blogging for?
you mаκe blogging look easy. The overall loοk
of your websitе is magnificent, let alone the content!
my homepage ... sr. public relations specialist salary
What's up, this weekend is good in support of me, because this occasion i am reading this impressive educational post here at my home.
Also visit my website :: Emergency Dispatcher Training Schools
whoah thіs ωеblog iѕ wondeгful i
loѵe studуіng your poѕtѕ.
Ѕtаy up thе great ωoгk!
Yοu κnoω, a lot of ρeoplе are hunting around for this info, you coulԁ aiԁ them gгеatlу.
Take а look at my web-ѕіtе :: legal secretary nj salary
Can you help me?
I want to repeat a task many times using Selenium IDE.
How to repeat a task with different parameters?
i want to create some items with different names.
How to do it?
-Arjun
arjunps22@yahoo.co.in
Today i was searching for selenium IDE tutorials on net and found practical examples of many commands at this link. http://software-testing-tutorials-automation.blogspot.in/2013/07/list-of-selenium-commands-with-examples.html
Good one..:)
good blog!! want to know more about selenium, Check this site for indepth Selenium tutorials. Go here if you’re looking for tutorials on Selenium.
Well defined article. You should sometimes write few tutorials for Software Testing Magazine.
Thanks for the great information in your blog Selenium Training in Chennai
Very good information. Thanks for posting it. Keep it up. Click here for more information.
Interest to learn Selenium Online Training by Real Time Software Testing Professional Trainer having 10+ Years of Expert.
Selenium Online Training
first of all, I would say thanks to you. If it is work for all languages in currently. Selenium Training in Chennai
Very good post.Thanks to provide such a neat and clear description about selenium.Will be very useful for the beginners.
mobile service center in velachery
The blog you shared is very good. I expect more information from you like this blog. Thankyou.
web designing training in chennai
web designing training in omr
digital marketing training in chennai
digital marketing training in omr
rpa training in chennai
rpa training in omr
tally training in chennai
tally training in omr
The blog you shared is very good. I expect more information from you like this blog. Thankyou.
IELTS Coaching in chennai
German Classes in Chennai
GRE Coaching Classes in Chennai
TOEFL Coaching in Chennai
spoken english classes in chennai | Communication training
Post a Comment