SlideShare a Scribd company logo
7
Most read
8
Most read
17
Most read
Selenium
Test Web Applications Using Selenium
A Web Club NITK Talk
Date : 03.02.2015
Test Automation
●
Test automation is the use of software
To set test preconditions.
To control the execution of tests.
 To compare the actual outcomes to predicted
outcomes.
To report the Execution Status.
●
Commonly, test automation involves
automating a manual process already in
place that uses a formalized testing
process.
Why and When To Automate?
●
Frequent regression testing
●
Repeated test case Execution is required
●
User Acceptance Tests
●
Faster Feedback to the developers
●
Reduce the Human Effort
●
Test same application on multiple
environments
Selenium
●
Selenium is a robust set of tools that supports
rapid development of test automation for web-
based applications.
●
Selenium provides a rich set of testing functions
specifically geared to the needs of testing of a
web application.
●
Selenium operations are highly flexible, allowing
many options for locating UI elements and
comparing expected test results against actual
application behavior.
Selenium Features
●
Supports Cross Browser Testing. The
Selenium tests can be run on multiple
browsers.
●
Allows scripting in several languages like
Java, C#, PHP and Python.
●
Assertion statements provide an efficient
way of comparing expected and actual
results.
●
Inbuilt reporting mechanism.
Selenium Components
●
Selenium Web Driver
●
Selenium IDE
●
Selenium Remote Control
●
Selenium Grid
Selenium Web Driver
● WebDriver is a tool for automating testing web
applications. WebDriver interacts directly with the
browser without any intermediary.
● Multi-browser testing including improved functionality
for browsers.
● Handling multiple frames, multiple browser windows,
popups, and alerts.
● Complex page navigation.
● Advanced user navigation such as drag-and-drop.
● AJAX-based UI elements.
Architecture
Installation
● http://www.seleniumhq.org/download/
● In order to create scripts that interact with
the Selenium Server (Selenium RC,
Selenium Remote Webdriver) or create
local Selenium WebDriver script you need
to make use of language-specific client
drivers.
● Ruby,Java, C#, Python, Node.js
Sample Script to Test a page
Most used Commands
Command Description
driver.get("URL") To navigate to an application.
element.sendKeys("inputtext") Enter some text into an input box.
element.clear() Clear the contents from the input box.
driver.switchTo().window("windowName"
)
Move the focus from one window to
another.
driver.navigate().to("URL") Navigate to the URL.
driver.close() Closes the current browser associated
with the driver.
driver.quit() Quits the driver and closes all the
associated window of that driver.
driver.refresh() Refreshes the current page.
Selenium - Grid
● Selenium Grid is a tool that distributes the tests across
multiple physical or virtual machines so that we can
execute scripts in parallel (simultaneously). It dramatically
accelerates the testing process across browsers and
across platforms by giving us quick and accurate
feedback.
● Selenium Grid allows us to execute multiple instances of
WebDriver or Selenium Remote Control tests in parallel
which uses the same code base, hence the code need
NOT be present on the system they execute. The
selenium-server-standalone package includes Hub,
WebDriver, and Selenium RC to execute the scripts in
grid.
Selenium grid Architecture
Selenium IDE
●
Selenium IDE is an integrated development
environment for Selenium tests.
●
It is implemented as a Firefox extension, and
allows you to record, edit, and replay the test in
firefox
●
Selenium IDE allows you to save tests as
HTML, Java, Ruby scripts, or any other format
●
It allows you to automatically add assertions to
all the pages.
●
Allows you to add selenese commands as and
when required
Selenium IDE - UI
Start and Stop
Recording
Selenese
Script
Editor
Selenium Log
Replay
Toolbar
Accessor
Area
Other Uses of selenium
● Crawling webpages . Also, AJAX crawling.
● Responsive Testing.
● Scraping content from webpages. In
particular, the ones which don't provide an
API and load content lazily using
Javascript.
Future Of Testing & Selenium
`
Thank you :)
Mail : anirudht20@gmail.com

More Related Content

PPT
Selenium ppt
PPT
Automation testing
PPT
Testing Centre Of Excellence From AppLabs
PPT
Chapter 03
PPTX
Six Sigma
PPTX
Selenium WebDriver training
PPT
Seminar blue eye
PPTX
Six sigma ppt
Selenium ppt
Automation testing
Testing Centre Of Excellence From AppLabs
Chapter 03
Six Sigma
Selenium WebDriver training
Seminar blue eye
Six sigma ppt

What's hot (20)

PDF
Automation Testing using Selenium
PPTX
Test Automation and Selenium
PPTX
Automation - web testing with selenium
PPTX
Test automation using selenium
PPTX
An overview of selenium webdriver
PPT
Test automation using selenium
PPT
Selenium
PPT
Selenium Automation Framework
PPT
Selenium Concepts
PDF
Automation Testing using Selenium Webdriver
PDF
Selenium with Cucumber
PPTX
Data driven Automation Framework with Selenium
PPTX
Selenium test automation
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PDF
What's new in selenium 4
PPTX
Test automation proposal
PPT
Selenium Presentation at Engineering Colleges
PPTX
Selenium ppt
PPTX
API Automation Testing Using RestAssured+Cucumber
PDF
Selenium - Introduction
Automation Testing using Selenium
Test Automation and Selenium
Automation - web testing with selenium
Test automation using selenium
An overview of selenium webdriver
Test automation using selenium
Selenium
Selenium Automation Framework
Selenium Concepts
Automation Testing using Selenium Webdriver
Selenium with Cucumber
Data driven Automation Framework with Selenium
Selenium test automation
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
What's new in selenium 4
Test automation proposal
Selenium Presentation at Engineering Colleges
Selenium ppt
API Automation Testing Using RestAssured+Cucumber
Selenium - Introduction
Ad

Similar to Selenium ppt (20)

PDF
An Overview of Selenium Grid and Its Benefits
PPT
QSpiders - Automation using Selenium
ODP
Integrating Selenium testing infrastructure into Scala Project
PDF
Cypress vs Selenium Choosing the Best Tool for Your Automation Needs.pdf
PDF
What is Selenium Testing.pdf
PPTX
A Simple Guide to Selenium Software Testing
PDF
How to use Selenium Grid for Multi-Browser Testing.pdf
PPTX
Python selenium
PPTX
Test Automation Using Selenium
PDF
7.pdf
PDF
Intelligent Testing Tool: Selenium Web Driver
PPTX
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
PDF
7 Effective Practices to Follow for Selenium Automation Testing
PDF
Selenium Automation Testing - A Complete Guide
PPTX
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
PDF
Selenium Automation Testing - A Complete Guide.pdf
ODP
PPTX
Slides for Automation Testing or End to End testing
An Overview of Selenium Grid and Its Benefits
QSpiders - Automation using Selenium
Integrating Selenium testing infrastructure into Scala Project
Cypress vs Selenium Choosing the Best Tool for Your Automation Needs.pdf
What is Selenium Testing.pdf
A Simple Guide to Selenium Software Testing
How to use Selenium Grid for Multi-Browser Testing.pdf
Python selenium
Test Automation Using Selenium
7.pdf
Intelligent Testing Tool: Selenium Web Driver
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
7 Effective Practices to Follow for Selenium Automation Testing
Selenium Automation Testing - A Complete Guide
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Selenium Automation Testing - A Complete Guide.pdf
Slides for Automation Testing or End to End testing
Ad

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
additive manufacturing of ss316l using mig welding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Welding lecture in detail for understanding
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Project quality management in manufacturing
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Structs to JSON How Go Powers REST APIs.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
additive manufacturing of ss316l using mig welding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Welding lecture in detail for understanding
Internet of Things (IOT) - A guide to understanding
Lecture Notes Electrical Wiring System Components
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CH1 Production IntroductoryConcepts.pptx
Lesson 3_Tessellation.pptx finite Mathematics
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Project quality management in manufacturing
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
Foundation to blockchain - A guide to Blockchain Tech
Structs to JSON How Go Powers REST APIs.pdf

Selenium ppt

  • 1. Selenium Test Web Applications Using Selenium A Web Club NITK Talk Date : 03.02.2015
  • 2. Test Automation ● Test automation is the use of software To set test preconditions. To control the execution of tests.  To compare the actual outcomes to predicted outcomes. To report the Execution Status. ● Commonly, test automation involves automating a manual process already in place that uses a formalized testing process.
  • 3. Why and When To Automate? ● Frequent regression testing ● Repeated test case Execution is required ● User Acceptance Tests ● Faster Feedback to the developers ● Reduce the Human Effort ● Test same application on multiple environments
  • 4. Selenium ● Selenium is a robust set of tools that supports rapid development of test automation for web- based applications. ● Selenium provides a rich set of testing functions specifically geared to the needs of testing of a web application. ● Selenium operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior.
  • 5. Selenium Features ● Supports Cross Browser Testing. The Selenium tests can be run on multiple browsers. ● Allows scripting in several languages like Java, C#, PHP and Python. ● Assertion statements provide an efficient way of comparing expected and actual results. ● Inbuilt reporting mechanism.
  • 6. Selenium Components ● Selenium Web Driver ● Selenium IDE ● Selenium Remote Control ● Selenium Grid
  • 7. Selenium Web Driver ● WebDriver is a tool for automating testing web applications. WebDriver interacts directly with the browser without any intermediary. ● Multi-browser testing including improved functionality for browsers. ● Handling multiple frames, multiple browser windows, popups, and alerts. ● Complex page navigation. ● Advanced user navigation such as drag-and-drop. ● AJAX-based UI elements.
  • 9. Installation ● http://www.seleniumhq.org/download/ ● In order to create scripts that interact with the Selenium Server (Selenium RC, Selenium Remote Webdriver) or create local Selenium WebDriver script you need to make use of language-specific client drivers. ● Ruby,Java, C#, Python, Node.js
  • 10. Sample Script to Test a page
  • 11. Most used Commands Command Description driver.get("URL") To navigate to an application. element.sendKeys("inputtext") Enter some text into an input box. element.clear() Clear the contents from the input box. driver.switchTo().window("windowName" ) Move the focus from one window to another. driver.navigate().to("URL") Navigate to the URL. driver.close() Closes the current browser associated with the driver. driver.quit() Quits the driver and closes all the associated window of that driver. driver.refresh() Refreshes the current page.
  • 12. Selenium - Grid ● Selenium Grid is a tool that distributes the tests across multiple physical or virtual machines so that we can execute scripts in parallel (simultaneously). It dramatically accelerates the testing process across browsers and across platforms by giving us quick and accurate feedback. ● Selenium Grid allows us to execute multiple instances of WebDriver or Selenium Remote Control tests in parallel which uses the same code base, hence the code need NOT be present on the system they execute. The selenium-server-standalone package includes Hub, WebDriver, and Selenium RC to execute the scripts in grid.
  • 14. Selenium IDE ● Selenium IDE is an integrated development environment for Selenium tests. ● It is implemented as a Firefox extension, and allows you to record, edit, and replay the test in firefox ● Selenium IDE allows you to save tests as HTML, Java, Ruby scripts, or any other format ● It allows you to automatically add assertions to all the pages. ● Allows you to add selenese commands as and when required
  • 15. Selenium IDE - UI Start and Stop Recording Selenese Script Editor Selenium Log Replay Toolbar Accessor Area
  • 16. Other Uses of selenium ● Crawling webpages . Also, AJAX crawling. ● Responsive Testing. ● Scraping content from webpages. In particular, the ones which don't provide an API and load content lazily using Javascript.
  • 17. Future Of Testing & Selenium `
  • 18. Thank you :) Mail : anirudht20@gmail.com