Reading:  

Getting started with Selenium


What is Selenium?

Selenium is an open source automated testing suite for web applications across various different browsers and platforms. It is similar to HP Quick Test Pro (QTP), but Selenium focuses only on automating web-based applications. 

Selenium is a suite of software’s, each cater to different testing needs. 

Selenium components are:

Selenium Components

Selenium IDE:

Selenium IDE (Integrated Development Environment) is the framework in the Selenium suite. It is a plugin that we can install as easily with Firefox. IDE is a prototyping tool. We cannot create more advanced test cases by using IDE.

Selenium Remote Control (Selenium RC):

Selenium RC first framework automated testing tool of Selenium. It allows users to use a programming language they prefer.

RC can support the following programming languages:

  • Java
  • C#
  • PHP
  • Python
  • Perl
  • Ruby

WebDriver:

The WebDriver is better than both Selenium IDE and Selenium RC in all aspects. It support to create more advanced test cases. WebDriver is not like Selenium RC, does not rely on JavaScript for automation, it communicates directly with the browser.

WebDriver can support the following programming languages:

  • Java
  • C#
  • PHP
  • Python
  • Perl
  • Ruby

Selenium Grid:

Selenium Grid is a tool used to run parallel tests across different machines and browsers simultaneously.

Features of selenium Grid:

  • Enables parallel running of tests in multiple browsers and platforms.
  • It saves time.

Advantages of Selenium:

QTP and Selenium are the most preferred tools in the software automation market. Hence the comparison the pros of Selenium over QTP:

Selenium

QTP

It is open source, free to use.

It is Commercial.

It can supports various operating systems

It can only be used in Windows

It can execute tests in parallel

It can execute in parallel but using Quality Center.

It can supports mobile devices

Supports mobile devise using 3rd party software.

 

Disadvantages of Selenium:

To makes sense to compare the pros of QTP over Selenium,

Selenium

QTP

Web based applications only supported.

Its can supports for both web and desktop applications

There is no default test report generation.

Tool can generate Default test result.

No feature such as Object Repository/Recovery Scenario

Recovery scenarios and object repositories are built-in.

 

Description

This tutorial will get you started with Selenium. This tutorial is subdivided into 11 chapters. 

  1. Overview
  2. IDE
  3. Environment Setup
  4. Remote Control
  5. Selenese Commands
  6. Webdriver
  7. Locators
  8. User Interactions
  9. Test design techniques
  10. TestNG
  11. Grid

 

 

 

* freelancer contributed



Environment

A PC capable of running selenium

Prerequisites

A basic idea of what Software Testing is.

Audience

People who wish to get started with Selenium

Learning Objectives

You will learn ins and outs of Selenium which includes downloading, installing and using Selenium.

Author: Subject Coach
Added on: 10th Feb 2015

You must be logged in as Student to ask a Question.

None just yet!