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:
- Open a new browser
- Navigate to www.google.com
- Click tools – > Selenium IDE (opens up IDE)
- click on Advanced Search link on Google search page
- type “selftechy” in “all these words:” edit box
- Select “20 results” from “Results per page” drop down
- Click Advanced Search button
- 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:
- 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
- Parameterization is difficult and values should be hard coded
- 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.
Really Very helpful and I really appreciate you for web posting.
Is selenium also helpful for device testing?
Selenium is a web application testing tool
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.
Currently I am not conducting any Selenium course
really it was very useful……may i know the clear explanation how to test sites by using java sir???
You are really good.
You have provided the maximum info…..:-)
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
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.
Nice Article .Really Very helpful and i really appreaciate for sharing the post .
what we need to learn if we want to use this tool profesionally for testing, and what else we can do with this tool
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
I am success to create my first selenium IDE script. Thank you very much..
Hi can you send me the process document for selinium i am very new to this
Seleniumhq.com has extensive documentation on Selenium
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
Go to http://docs.seleniumhq.org/
This has extensive documentation on Selenium
Also, you can refer the “Selenium” page of this blog
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
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.
Regards,
Rathod.
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
Thank you Mukesh
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.
Thanks,
Ishwarya
Thank you so much Ishwarya
Hi buddy,
Very nice post.
Thanx for sharing this post.
can you please share the posts regarding best test automation tools.
Hi Alisha,
Thanks for the compliment. answer to your question depends on the application under test.
This is very informative post such an very helpful.
This is the perfect guide, Love this mini-tutorial. You made it easy by adding images. Thank you to shared this great content.