Selenium

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

SELENIUM

Submitted by : Submitted to:


Divya Gambhir Mr. Rajesh Jain
Enrollment No: 01316702020 (H.O.D)
Agenda

 What is Selenium.
 Selenium Features comparing to QTP.
 Components of Selenium.
 Selenium IDE
 Selenium RC and how it works?
 Selenium Grid
 Selenium Web Driver
 Why Selenium over other tools?
 Comparison of QTP over Selenium
 Selenese
 Selenium test script with output
 Video
 Selenium as a career
 Bibliography
Features Of Selenium
 Selenium is a Functional Automation tool for Web applications.
 Selenium is an open source tool (No cost Involved in it).
 Selenium supports the languages like HTML, Java, PHP, Perl, Python, Ruby and C#.
 It supports the browsers like IE, Mozilla Firefox, Safari, Google Chrome and Opera.
 It supports the operating systems like Windows, Linux and Mac.
 It is very flexible when compared to QTP (Quick Test Professional) and other functional
tools, because it supports multiple languages.
Components Of Selenium
 Selenium is mainly built on 3 components:
Selenium IDE
Selenium RC
Selenium Grid
Selenium IDE
 IDE stands for Integrated Development Environment
 Which is used for Record and Play back the scripts.
 It is an Add on for Mozilla Firefox, which means we can download the Selenium IDE from
Mozilla Firefox and we can Record and Run the scripts in Mozilla Firefox only.
 Selenium IDE is accountable for user actions.
 We can Run the Recorded scripts against other browsers by using Selenium RC
Selenium RC
 RC stands for Remote Control.
 It is a Server and launches the Browser.
 It acts as a API and Library of Selenium.
 We need to configure the Selenium RC with the supported language, then we can automate the
application.
How Selenium RC works?
 Before starting any test we need to launch the Selenium RC server.
 RC server is the mediator between Selenium commands and browsers. It injects Selenium
Core(JavaScript Program) into a web browser when the actual testing is triggered
 Selenium Server communicates with the running test client and drives the browser after
receiving instruction by RC Server.
 Client tests send commands that the server interprets in order to drive the browser
 The browser receives the instructions from Selenium Core and relays its response to the
Selenium RC Server.
 Using the response received by the RC Server, the test results are displayed to the user.
Selenium Grid
 Selenium Grid is used for launching the multiple browsers with supported operating system in
parallel.
 We can run the scripts on different browsers in parallel.
 It allows you to easily run multiple tests in parallel, on multiple machines, in a heterogeneous
environment
Selenium Web Driver
 Selenium WebDriver is the successor of Selenium Remote Control which has been officially
deprecated .
 Selenium WebDriver is a collection of language specific bindings to drive a browser.
 WebDriver is designed in a simpler and more concise programming interface along with
addressing some limitations in the Selenium-RC API.
Why Selenium over other tools ?
 Most powerful Open Source Automation tool available.
 Flexible with support to many languages
 Highly extensible
 Platform Support– Provides support on wide range of OS compared to any other tool
 Parallel Testing- Supports parallel Testing
 Usability – Easy to use.
 ALM Integration – Provides integration with several bug tracking tools.
Comparison of QTP over Selenium
Feature Selenium QTP (Quick Test Professional)

Record and Playback Yes Yes

Language Support Java , C# , Python ,Ruby VB Script

Ease Of Execution Easy Easy

OS Support Windows, Linux , Mac, Android , Windows


IOS
Browser Support Firefox , IE, Opera , Safari IE
Selenese
 Selenium commands, often called selenese. The set of these commands are nothing but test
script.
 If you want to write test scripts for any application, initially you need to integrate Selenium
with Java by using Eclipse. (check the Integration doc).
 After completion of the integration, First we need to create the selenium object as below .
DefaultSelenium selenium=new DefaultSelenium(“System address”, ”Port no of selenium”,
“Browser to launch”, “url”).
Generally we use the below selenium commands to work on any application:
 Start(): To launch the Browser.
 Open(): To open the url.
 Close(): To kill or close the Browser.
 windowMaximize(): To maximize the window.
 Type(): To enter some text into a text box.
 Click(): To click on Button, Radio button and Link.
 Select(): To select a value or label from combo box or list box or Drop down.
 Check(): To check the check box.
 selectPopUp(): To identify the pop up window.
 selectWindow(): To identify the child window.
 selectFrame(): To identify the frame.
 getAlert(): To Click ok on alert box.
 getConfirmation(): To click ok on confirmation message.
 chooseCancelOnNextConfirmation(): To click Cancel on next displayed confirmation message.
 chooseOkOnNextConfirmation(): To click Cancel on next displayed confirmation message.
Test Script
Output
Selenium as a Career
If you are an automation test engineer and love software testing, gaining a technical knowledge of Selenium is obviously the
right choice for you. Because the future is with qualified Selenium test automation engineers. Since companies are increasingly
making use of web applications, test automation market trends are steadily shooting up with extensive demand with Selenium.
Moreover, Selenium makes functional testing easier and more convenient for clients to receive ROI much faster by reducing
the number of cycles involved in testing. It has been identified as a powerful open source automation tool known for its
effective delivery.
There is a long list of companies worldwide that rely on Selenium resources to check their needs. Selenium is tech giants such
as Microsoft and Facebook’s most preferred test automation tool together with various other big firms such as Google, Mozilla,
LinkedIn, IBM, etc. Here are few popular job roles you can think about as a Selenium WebDriver professional.
 Automation Test Lead
 Senior Test Engineer
 Quality Engineer
 Selenium Automation Analyst
 QA Engineer

Although salary varies by company, but Selenium Test Engineers are in great demand because it gives the industry a better
exposure. Enormous possibilities of wage increase with experience and a promising career can be hailed after indulging more
and more with it. Each Selenium automation tester has a great opportunity during their career to boost their growth.
Bibliography
http://www.seleniumhq.org/
http://www.developerfusion.com/
https://www.slideshare.net/

You might also like