SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Automated Testing Tool
Presenter: Satyam and Hemminder
October 12, 2016
SELENIUM
NEED OF TEST AUTOMATION
 The word “automation” is misleading. We cannot automate
users. We automate some actions they perform, but users do
so much more than that.
 Output checking can be automated, but testers do so much
more than that.
 Automated output checking is interesting, but tools do so
much more than that.
 Call them tools (not “test automation”).
• Developed in 2004 by Jason Huggins as a JavaScript library used to
automate his manual testing routines
• Selenium Core is born whose functionality underlies the Selenium RC
(Remote Control) and Selenium IDE tools
• The Limitation of having a JavaScript based automation engine and
browser security restricted Selenium to specific functionality
• Google, who has been a long time user of Selenium, had a developer
named Simon Stewart who developed WebDriver. This tool circumvented
Selenium’s JavaScript sandbox to allow it to communicate with the Browser
and Operating System directly using native methods
• In 2008, Selenium and WebDriver merged technologies and intellectual
intelligence to provide the best possible test automation framework
HISTORY
• Selenium is a suite of testing automation tools used for Web-Base
applications: Selenium IDE, Selenium RC, Selenium WebDriver and
Selenium Grid
• These tools provide a rich set of testing functions specifically geared
to varied testing scenarios of all types of Web applications
• The operations provided by these tools are highly flexible and afford
many options for comparing UI elements to expected application
behavior
• Selenium tests can be executed on multiple browser platforms
INTRODUCTION
Increases you marketability
Has a lot of Java planks
Growing Industry standard
Assist with the deployment of defective-free code
Open source, web-based testing automation tool and cross-browser compliant
Muti-language backend support (Java, Ruby, Python, C#, PHP, ect…)
WHY USE/LEARN SELENIUM
SELENIUM FRAMEWORK
• Selenium IDE
• Rapid prototyping tool for building test scripts
• Firefox plugin
• Can be used by developers with little to no programming experience to write simple tests quickly
and gain familiarity with the Selenese commands
• Has a recording feature that records a user’s live actions that can be exported in one of many
programming languages
• Does not provide iteration or conditional statements for test scripts
• Can only run tests against FireFox
• Developed tests can be run against other browsers, using a simple command-line interface that
invokes the Selenium RC server
• Can export WebDriver or Remote Control scripts (these scripts should be in PageObject
structure)
• Allows you the option to select a language for saving and displaying test cases
SELENIUM TOOLS
• Selenium RC aka Selenium 1
• It ‘inject’ JavaScript functions into the browser when the browser is loaded and then uses
its JavaScript to drive the AUT within the browser
• Mainly supported in maintenance mode
• Provides support for several programming languages
• Selenium WebDriver
• Designed to provide a simpler, more concise programming interface in addition to
addressing some limitations in the Selenium-RC API
• Developed to better support dynamic web pages where elements of a page may change
without the page itself being reloaded
• Makes direct calls to the browser using each browser’s native support for automation.
• Has the Selenium 1 (aka Selenium RC) underlying technology for flexibility and Portability
• Migrating From Selenium RC to Selenium WebDriver
• Not tied to any particular test framework, so it can be used equally well in unit testing or
from a plain old “main” method.
SELENIUM TOOLS
• Selenium Grid
• Scales the Selenium RC solution for large test suites and test that must be run in
multiple environments
• Tests can be run in parallel with simultaneous execution (different tests on
different remote machines)
• It allows for running your tests in a distributed test execution environment
• Used to run your tests against multiple browsers, multiple versions of browser,
and browsers running on different operating systems
• It reduces the time it takes for the test suite to complete a test pass
SELENIUM TOOLS
SELENIUM IDE
CONTINUED..
MENU BAR(FILE MENU)
SELENIUM IDE
SELENIUM IDE
Commonly Used Selenium Commands
open
click/clickAndWait
verifyTitle/assertTitle
verifyTextPresent
verifyElementPresent
verifyText
verifyTable
waitForPageToLoad
waitForElementPresent
SELENIUM IDE
SELENIUM IDE
SELENIUM IDE
SELENIUM IDE
SELENIUM IDE
SELENIUM IDE
SELENIUM IDE
Introduction of Web Technologies – HTML, XML, XPath, CSS and DOM
X-Path
Used for locating nodes in an XML document
Elements can be located in regards to absolute terms or a relative position to an element that has a specified id or
name attribute
Can locate elements via attributes other than id or name
Starts with “//”
By DOM
Can be accessed using Javascript
Locator type is “document”
By CSS
Uses the style binding of selectors to elements in a document as a locating strategy
Faster than X-Path and can find the most complicated objects in an intrinsic HTML document
Locator type is “css”
SELENIUM IDE
Selenium

More Related Content

What's hot (20)

PPTX
Selenium Webdriver
Muhammad Bilal
 
PPTX
Automation - web testing with selenium
Tzirla Rozental
 
PPT
Selenium 2: The Future of Selenium is now!
AutomatedTester
 
PDF
Introduction to Selenium Automation
Mindfire Solutions
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
ODP
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Yuriy Gerasimov
 
PPT
Selenium
Adam Goucher
 
PPT
Selenium
conect2krish
 
PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
PPS
Selenium Demo
ankitslide
 
PPT
Selenium Primer
gueste1e4db
 
PDF
Web automation using selenium.ppt
Ana Sarbescu
 
PPT
Selenium
Sun Technlogies
 
PDF
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
PPTX
Selenium - Introduction
Sachin-QA
 
PPT
Selenium ppt
Naga Dinesh
 
PDF
Jenkins & Selenium
adamcarmi
 
PPTX
Python selenium
Ducat
 
ODP
Mastering selenium for automated acceptance tests
Nick Belhomme
 
PPT
Web Test Automation with Selenium
vivek_prahlad
 
Selenium Webdriver
Muhammad Bilal
 
Automation - web testing with selenium
Tzirla Rozental
 
Selenium 2: The Future of Selenium is now!
AutomatedTester
 
Introduction to Selenium Automation
Mindfire Solutions
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Yuriy Gerasimov
 
Selenium
Adam Goucher
 
Selenium
conect2krish
 
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
Selenium Demo
ankitslide
 
Selenium Primer
gueste1e4db
 
Web automation using selenium.ppt
Ana Sarbescu
 
Selenium
Sun Technlogies
 
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
Selenium - Introduction
Sachin-QA
 
Selenium ppt
Naga Dinesh
 
Jenkins & Selenium
adamcarmi
 
Python selenium
Ducat
 
Mastering selenium for automated acceptance tests
Nick Belhomme
 
Web Test Automation with Selenium
vivek_prahlad
 

Similar to Selenium (20)

PPTX
Selenium
Jahan Murugassan
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PPTX
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPTX
Basics of selenium containing features of selenium
Madhuri Lonikar
 
PPTX
Selenium
Rakshitha Raviprakash
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Batch2016
 
PPT
Selenium (1) (1)
Vishwan Aranha
 
PPTX
Selenium
Ivan Aranha
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPTX
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
PPTX
Selenium using Java
F K
 
PPTX
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
PPTX
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
PPTX
Demystifying Selenium framework
kunalgate125
 
PPT
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
PPTX
Selenium introduction
Pankaj Dubey
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Test Automation Using Selenium
Nikhil Kapoor
 
Basics of selenium containing features of selenium
Madhuri Lonikar
 
Selenium
Batch2016
 
Selenium
Batch2016
 
Selenium
Batch2016
 
Selenium (1) (1)
Vishwan Aranha
 
Selenium
Ivan Aranha
 
Test Automation and Selenium
Karapet Sarkisyan
 
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
Selenium using Java
F K
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
Demystifying Selenium framework
kunalgate125
 
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium introduction
Pankaj Dubey
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Ad

Recently uploaded (20)

PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Ad

Selenium

  • 1. Automated Testing Tool Presenter: Satyam and Hemminder October 12, 2016 SELENIUM
  • 2. NEED OF TEST AUTOMATION  The word “automation” is misleading. We cannot automate users. We automate some actions they perform, but users do so much more than that.  Output checking can be automated, but testers do so much more than that.  Automated output checking is interesting, but tools do so much more than that.  Call them tools (not “test automation”).
  • 3. • Developed in 2004 by Jason Huggins as a JavaScript library used to automate his manual testing routines • Selenium Core is born whose functionality underlies the Selenium RC (Remote Control) and Selenium IDE tools • The Limitation of having a JavaScript based automation engine and browser security restricted Selenium to specific functionality • Google, who has been a long time user of Selenium, had a developer named Simon Stewart who developed WebDriver. This tool circumvented Selenium’s JavaScript sandbox to allow it to communicate with the Browser and Operating System directly using native methods • In 2008, Selenium and WebDriver merged technologies and intellectual intelligence to provide the best possible test automation framework HISTORY
  • 4. • Selenium is a suite of testing automation tools used for Web-Base applications: Selenium IDE, Selenium RC, Selenium WebDriver and Selenium Grid • These tools provide a rich set of testing functions specifically geared to varied testing scenarios of all types of Web applications • The operations provided by these tools are highly flexible and afford many options for comparing UI elements to expected application behavior • Selenium tests can be executed on multiple browser platforms INTRODUCTION
  • 5. Increases you marketability Has a lot of Java planks Growing Industry standard Assist with the deployment of defective-free code Open source, web-based testing automation tool and cross-browser compliant Muti-language backend support (Java, Ruby, Python, C#, PHP, ect…) WHY USE/LEARN SELENIUM
  • 7. • Selenium IDE • Rapid prototyping tool for building test scripts • Firefox plugin • Can be used by developers with little to no programming experience to write simple tests quickly and gain familiarity with the Selenese commands • Has a recording feature that records a user’s live actions that can be exported in one of many programming languages • Does not provide iteration or conditional statements for test scripts • Can only run tests against FireFox • Developed tests can be run against other browsers, using a simple command-line interface that invokes the Selenium RC server • Can export WebDriver or Remote Control scripts (these scripts should be in PageObject structure) • Allows you the option to select a language for saving and displaying test cases SELENIUM TOOLS
  • 8. • Selenium RC aka Selenium 1 • It ‘inject’ JavaScript functions into the browser when the browser is loaded and then uses its JavaScript to drive the AUT within the browser • Mainly supported in maintenance mode • Provides support for several programming languages • Selenium WebDriver • Designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API • Developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded • Makes direct calls to the browser using each browser’s native support for automation. • Has the Selenium 1 (aka Selenium RC) underlying technology for flexibility and Portability • Migrating From Selenium RC to Selenium WebDriver • Not tied to any particular test framework, so it can be used equally well in unit testing or from a plain old “main” method. SELENIUM TOOLS
  • 9. • Selenium Grid • Scales the Selenium RC solution for large test suites and test that must be run in multiple environments • Tests can be run in parallel with simultaneous execution (different tests on different remote machines) • It allows for running your tests in a distributed test execution environment • Used to run your tests against multiple browsers, multiple versions of browser, and browsers running on different operating systems • It reduces the time it takes for the test suite to complete a test pass SELENIUM TOOLS
  • 15. Commonly Used Selenium Commands open click/clickAndWait verifyTitle/assertTitle verifyTextPresent verifyElementPresent verifyText verifyTable waitForPageToLoad waitForElementPresent SELENIUM IDE
  • 22. Introduction of Web Technologies – HTML, XML, XPath, CSS and DOM X-Path Used for locating nodes in an XML document Elements can be located in regards to absolute terms or a relative position to an element that has a specified id or name attribute Can locate elements via attributes other than id or name Starts with “//” By DOM Can be accessed using Javascript Locator type is “document” By CSS Uses the style binding of selectors to elements in a document as a locating strategy Faster than X-Path and can find the most complicated objects in an intrinsic HTML document Locator type is “css” SELENIUM IDE