Learn Selenium Step by Step

by seetaram on June 29, 2011

Selenium is an open source web application Test Automation tool.  Learning Selenium is very easy.  Anybody who worked on manual testing can easily learn Selenium.  We will try to explore how to learn Selenium Step by Step.

Selenium has three main tools – Selenium IDE, Selenium RC, and Selenium Grid.

First let us have a look at Selenium IDE

Selenium IDE – This is a Firefox Add-on (download from openqa download page).  Download Selenium IDE and install.

Once the IDE is installed, go to tools – > click Selenium IDE.  This opens up the Selenium IDE as below:


Once this is done, close the Selenium IDE.

Now let us record a test:

  1. Open a new browser
  2. Navigate to www.google.com
  3. Click tools – > Selenium IDE (opens up IDE)
  4. click on Advanced Search link on Google search page
  5. type “selftechy” in “all these words:” edit box
  6. Select “20 results” from “Results per page” drop down
  7. Click Advanced Search button
  8. Click on File (on Selenium IDE) – > Save Test Case As and then give it a name and save the test case


Selenium IDE has recorded around 3-4 test steps.  Starting from the first step – > right click on each step and then click “Execute this command”.  Execute all the commands one by one.

Try to record some more tests with even more complexity and also record more number of tests.  Then try to execute each tests as explained above.  By this way you can become more comfortable with Selenium IDE.  After this exercise we can go ahead and try to learn exporting the tests in different formats such as Java, JUnit, PHP, C#, etc and also setting up the Selenium RC with Eclipse.

Below are the drawbacks of using Selenium IDE for record and execute tests:

  1. If all the test steps are executed together then the chances of tests getting failed is more because of page load time / objects taking more time to appear on the web page
  2. Parameterization is difficult and values should be hard coded
  3. Maintenance is much more difficult, etc.

I have explained using Selenium RC and configuring Eclipse with Selenium RC in my earlier post – Setting up Selenium with Eclipse

For detailed configurations have a look at the above post.

{ 25 comments… read them below or add one }

Kanti July 10, 2012 at 3:44 pm

Really Very helpful and I really appreciate you for web posting.


Amit October 12, 2012 at 1:12 pm

Is selenium also helpful for device testing?


seetaram August 22, 2013 at 6:34 am

Selenium is a web application testing tool


Harumraj February 23, 2013 at 5:31 pm

Its really very very useful not only that already i have an idea to learn selenium, now you are encourage me to do that. And one more help,
1.can you please tell me duration for this course?
2. which place is good to learn effectively.
3. shall we write script?

Pls reply to me as soon as possible.


seetaram March 7, 2013 at 6:05 am

Currently I am not conducting any Selenium course


prassanth April 10, 2013 at 12:23 pm

really it was very useful……may i know the clear explanation how to test sites by using java sir???


Venkateswara Reddy April 3, 2013 at 4:14 am

You are really good.
You have provided the maximum info…..:-)


deepa April 9, 2013 at 10:17 am

Can u please tel me in details how to use as i work on manuall testing, so not getting the steps,

Please send me the detailed steps


Sarita June 1, 2013 at 11:54 am

I tried to do the steps you have mentioned to record a test.
But when i right clicked on each step on Selenium IDE and clicked on Execute this command, i got this error at Log tab of Selenium IDE:

[error] Element //input[@value=’Advanced Search’] not found.

Please help.


Gaurav Ghosh April 14, 2015 at 6:52 pm

Nice Article .Really Very helpful and i really appreaciate for sharing the post .


jaffer September 18, 2013 at 6:36 pm

what we need to learn if we want to use this tool profesionally for testing, and what else we can do with this tool


seetaram September 20, 2013 at 3:52 am

What we need to learn if we want to use this tool professionally — Learn automation and Java for coding

What else we can do with this tool — Purpose of this tool is Web application UI automation


Namrata October 24, 2013 at 7:18 am

I am success to create my first selenium IDE script. Thank you very much..


Divya November 6, 2013 at 11:05 am

Hi can you send me the process document for selinium i am very new to this


seetaram November 7, 2013 at 7:48 am

Seleniumhq.com has extensive documentation on Selenium


HariPrasad November 8, 2013 at 10:17 am

Hi Friends,

First time i am using selenium web driver using eclipse. Can any one please help me .. and please share related doc’s ….. Thank q


seetaram November 11, 2013 at 11:30 am

Go to http://docs.seleniumhq.org/

This has extensive documentation on Selenium

Also, you can refer the “Selenium” page of this blog


Faizan May 20, 2014 at 10:15 am

The above blog show helpful information but i am looking for some detail step by step guide for Selenium web driver so someone here can suggest


Rathod May 7, 2015 at 5:30 am

Hi All,

I am new to selenium webdriver. I want to get input (test data) from excel sheet.

for example: while testing gmail login page userId and password to be capture from excel sheet.

Kindly suggest me the best way of coding with step by step process.



Mukesh Otwani October 6, 2016 at 9:08 am

Hi Seetaram,

Nice job, Today I was just searching some of the Selenium and I just landed to your page. This post is quite old but contains nice information. I can see you have not posted new article but we would like to see your post in future. Nice work once again 🙂

Cheers and Best Regards
Mukesh Otwani


seetaram October 15, 2016 at 2:17 pm

Thank you Mukesh


Ishwarya February 25, 2017 at 6:16 pm

Awesome, thanks for taking a time to share a valuable article on Selenium beginner with all the steps. It is very helpful for me being a beginner in Selenium.



seetaram November 26, 2017 at 12:30 pm

Thank you so much Ishwarya


Alisha June 13, 2017 at 7:40 am

Hi buddy,

Very nice post.
Thanx for sharing this post.

can you please share the posts regarding best test automation tools.


seetaram November 26, 2017 at 12:27 pm

Hi Alisha,

Thanks for the compliment. answer to your question depends on the application under test.


Leave a Comment

Previous post:

Next post:

Do you want to get updates on the recent articles written? Please subscribe to RSS feed or Email