Introduction to selenium

What is Selenium?

Selenium is a web Automation tool which can used to perform testing ONLY on Web Applications not Desktop based applications.

There are others tool which can be used to automate both web applications and windows applications like QTP (Quick Test Professional) . As every one aware that QTP is Licensed Tool AND Selenium is Open source tool, download it configure it and enjoy.

This is the main reason why most of the companies choose Selenium whenever they want to automate Web applications

It has the below components:
Selenium IDE: Which is a firefox plug-in which deals with and playback mechanism. User can create simple scripts and export to selenium RC or Webdriver.

Selenium RC: Is a tool which allows to automate web application using any of the programming language that supports.

Selenium Webdriver:
It makes direct calls to the browser using each browser's native support for automation.
Webdriver was developed to better support dynamic web pages like Ajax where elements of a page may change without the page itself being reloaded.

Selenium Grid:
Is a server that allows tests to use web browser instances running on remote machines.

There are others tool which can be used to automate both web applications and windows applications like QTP (Quick Test Professional) . As every one aware that QTP is Licensed Tool AND Selenium is Open source tool, download it configure it and enjoy.

This is the main reason why most of the companies choose Selenium tool whenever they want to automate Web applications

As a beginner, if you want to learn selenium, it is not that difficult, you just start using Selenium IDE which is a firefox plug-in, used to record and play the script. This is just for practice, and you can learn how the commands that are used to run the script in IDE.

But remember IDE itself is not enough for effective test case writing / scripting. Because it doesn't support looping concepts and and you cannot customize it for your needs.

At this point of time, you can start using Webdriver with the programming language that you are comfortable with.

We prefer Java as it is from long time in the industry and there are many online forums which provides support to Webdriver with Java.

How and where to download selenium?

It is very simple to download selenium. We need to download a jar file from Selenium Downloads. In the downloads page, you will find the name as Selenium server, where you will have a link to download the latest version of selenium.

And at Selenium Client & Webdriver Language Bindings, You need to choose the language that you are going to use to write the selenium scripts. The current version of selenium is 2.39.0 ( At the time of writing).

Be sure you specify the most current version as there will be some enhancements and fixes will be added/appended. You can also refer to change log document for reference.

the downloaded file name will be selenium-server-standalone

Prerequisites to learn selenium?

Before jumping into selenium, user should be aware of basic java concepts and HTML concepts which will help the selenium developer to create effective scripts.

HTML knowledge: User should have knowledge in basics of HTML tags like text-box, text-area box, radio buttons check-boxes and the tags for these elements etc.
we will discuss in detail in HTML introduction

Java knowledge for Selenium: User need to have minimum knowledge in the below concepts:

  • Static and Non Static Variables
  • Control statements
  • Operators
  • Objects and Classes
  • Return Types
  • OOPS concepts (Inheritance, Overriding)
  • Strings
  • Constructors
  • Arrays
  • Exception Handling
  • Packages

If the user is really strong in the above concepts, he/she can play with selenium with minimum effort.

A user without these concepts also can start scripting, but need to work hard to write effective test scripts using selenium.

Selenium Tutorials: 

Comments

would like to learn the selenium for testing purpose

Hi,
I am trying to open other links(topics) from this page, but it gives an error "The website encountered an unexpected error. Please try again later.".

We were facing technical issues on the other day. Now it is rectified. Please feel free to comment again if you face the problem again.

Thank you so much for bringing it our notice.

i dont know anything about selenium.what should i do??????

Try to learn...That's it

Hi,
can u help me in writing webdriver script to find out the name of the browser?
Thanks,
Narayana

Capabilities cap = ((RemoteWebDriver) driver).getCapabilities();
String browserName = cap.getBrowserName().toLowerCase();
System.out.println(browserName);

Hi

can you help me how can we get exact jar files of Selenium Webdriver ?

Thanks.

thank you very much.
I found this information very helpful.

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.