If you are interested in browser automation or web application testing you may have already heard of Selenium. Since there is a lot of terminology related to this framework, it is easy for you to get lost, especially if you come to Selenium for the first time. In this article I want to save your day by providing a short and clear explanation of what is what in the Selenium project.
What is Selenium?
Selenium is a web application testing framework that allows you to write tests in many programming languages like Java, C#, Groovy, Perl, PHP, Python and Ruby. Selenium deploys on Windows, Linux, and MAC OS.
It is an open-source project, released under the Apache 2.0 license, so you can download and use it without charge.
- Selenium RC (aka Selenium Remote Control or Selenium 1) receives Selenium Core commands via HTTP and executes them on a remote machine, proxying the web browser in order to avoid the “same host origin” restriction. This also allows writing the tests in other languages like C#, Python, Perl, PHP, Java and Ruby (via language bindings for Selenium Core).
- Selenium Server allows using Selenium-WebDriver on a remote machine.
- Selenium IDE is a Firefox add-on that records user activity and creates a test case based on it. It can also play the tests back and save them as a program in different languages.
- Selenium-Grid allows you run the tests on different machines against different browsers in parallel; in other words it enables distributed test execution.
- Selenese is a special “language” represented by a set of Selenium commands that run your tests. A sequence of these commands is called a test script.
Where to start?
It’s good to start with Selenium IDE. It will help you to become more familiar with Selenium commands, and you can see how Selenium works by running the test scripts right from this tool. Note, however, that when you run your test scripts from Selenium IDE, they are executed in a different way than when you run them through other Selenium tools. If you need to test your application, you’d better use Selenium WebDriver or Selenium RC. I put Selenium WebDriver first, because it is the successor of Selenium RC which has been officially deprecated.
You can download everything at http://docs.seleniumhq.org/download/.
A bit of history
2006 – Simon Stewart started working on another web testing tool called WebDriver
2009 – Selenium RC and WebDriver are merged into a one project called Selenium-WebDriver (aka Selenium 2.0)
2013 – The first working draft of WebDriver API W3C Specification is released
5 replies on “What is Selenium WebDriver?”
It was nice to read your post.If you want to create robust, browser-based regression automation scale and distribute else scripts across many environments then you want to use Selenium WebDriver which is a collection of language specific bindings to drive a browser
Selenium tutorial – http://www.hub4tech.com/selenium-tutorial
Selenium Interview Questions – http://www.hub4tech.com/interview/selenium
Online Training Selenium – http://www.hub4tech.com/online-training
I want to scrape profiles from a website based on location and skillset element. Kindly help. I am confused
Thanks for sharing the understanding of Selenium terminologies,
It’s very much helpful for me being a beginner in Selenium.
Thanks a lot !!
Hi, Very Nice article. But when I try this on Bamboo, It gives me an error. But when I try the test locally it works fine. I will post the error here, Can you provide some help