SlideShare a Scribd company logo
Seleniu
m
Intro
Presentation
Riphah International University
Course Instructor
Dr Waqar Mehmood
Sap Id
Present By
Hafiz Rizwan Umar 46690
Agenda
Intro of
Selenium
Locators in
selenium
Handling Web
Element
Grid & Parallel
Execution
Components Features &
Advantages
WebDrive
r
Key Performance
Indicators
Selenium Intro
Software Construction
Development
Presentation
Riphah International University
Challenges
Best Practices Integrations Career Opportunities
Page 1
Cross Browser Automation testing
What is
Selenium?
Selenium was born out of the need for automated web
application testing. Before Selenium, most testing was done
manually, which was slow, costly, and error-prone.
It supports different browsers like
Chrome, Firefox, Edge, Safari.
It automates browsers and supports
multiple programming languages.
Primarily used for functional and
regression testing.
Selenium Intro
Software Construction
Development
Riphah International University
Page 2
Jason Huggins
Simon Stewart
Revolution
Of
Selenium Created Selenium Core
Created Selenium
WebDriver
Paul Hammant
Philippe Hanrigou
Developed Selenium RC
Developed Selenium Grid
Selenium has transformed web automation testing since its inception in 2004. Initially
developed by Jason Huggins as Selenium Core, it faced security restrictions, leading to the
creation of Selenium RC (2005) by Paul Hammant, which introduced a proxy server for cross-
domain testing. However, Selenium WebDriver (2008) by Simon Stewart replaced RC by
directly controlling browsers using native APIs, making tests faster and more stable. To enhance
scalability, Selenium Grid (2011) by Philippe Hanrigou enabled parallel execution. In Selenium
2 (2011), WebDriver officially replaced RC, marking a significant advancement. Selenium 3 (2016)
improved browser compatibility, while Selenium 4 (2021-Present) introduced W3C-compliant
WebDriver, relative locators, and enhanced debugging, making it the most efficient and modern
web automation tool today.
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
Componen
ts
Selenium consists of four major components:
Selenium
IDE
Selenium
Grid
Selenium WebDriver
Selenium RC
Record and playback tool for test
cases.
Executes tests on multiple
machines & browsers
simultaneously.
Interacts with web elements
programmatically.
Legacy component replaced by
WebDriver.
Page 3
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
IDE
• A browser extension for Firefox and Chrome.
• Allows users to record, edit, and debug test cases.
• Best suited for beginners and quick prototyping.
• Generates test scripts in different languages.
Page 4
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
WebDriver
• Core Selenium component that directly interacts with
web browsers.
• Does not require a browser GUI to execute tests.
• Supports different programming languages (Java,
Python, C#, JavaScript, Ruby).
• More powerful and flexible than Selenium IDE.
Page 5
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
Grid
• Used for parallel test execution across multiple
machines/browsers.
• Improves test execution speed and efficiency.
• Uses a Hub-Node architecture:
• Hub: Controls test execution.
• Node: Executes tests on different browsers/machines.
Page 6
Selenium Intro
Software Construction
Development
Riphah International University
Career
Opportuniti
es
Career Opportunities with
Selenium
Automation Test Engineer QA Engineer
Software Developer in Test
(SDET)
Freelance Selenium
Tester
DevOps Engineer (CI/CD
integration)
Page 7
Selenium Intro
Software Construction
Development
Riphah International University
Challenges
in Selenium
⚠ Limited support for desktop & mobile apps
⚠ Handling dynamic elements & pop-ups can be tricky
⚠ Needs third-party tools for reporting
⚠ Steep learning curve for beginners
Page 8
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
Best
Practices
✔ Use explicit waits instead of Thread.sleep()
✔ Follow the Page Object Model (POM) for maintainability
✔ Use headless browsers for faster execution
✔ Run tests in parallel using Selenium Grid
✔ Use logging & reporting tools (Allure, TestNG, Extent Reports)
Page 9
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
vs Other
Automati
on Tools
FEATURES SELENIUM QTP/UFT CYPRESS
OPEN SOURCE ✅ ❌ ✅
SUPPORTS
MULTIPLE
BROWSERS
✅ ✅ ✅
MOBILE TESTING ❌ ✅ ❌
Page 10
Selenium Intro
Software Construction
Development
Riphah International University
Locators in
Selenium
ID DRIVER.FINDELEMENT(BY.ID("USERNAME"))
→
NAME DRIVER.FINDELEMENT(BY.NAME("PASSWORD"))
→
CLASS NAME DRIVER.FINDELEMENT(BY.CLASSNAME("LOGIN-BTN"))
→
TAG NAME DRIVER.FINDELEMENT(BY.TAGNAME("A"))
→
CSS SELECTOR DRIVER.FINDELEMENT(BY.CSSSELECTOR("#LOGIN"))
→
XPATH DRIVER.FINDELEMENT(BY.XPATH("//BUTTON[@ID='LOGIN']"))
→
Page 11
Selenium Intro
Software Construction
Development
Riphah International University
Language
s
Selenium Supported
Languages
Java Languages Python Language
C - sharp Language JavaScript Language
Ruby Language
Selenium WebDriver supports multiple programming languages
Page 12
Selenium Intro
Software Construction
Development
Riphah International University
Selenium
Integratio
ns
Testing
Frameworks
Build
Tools
Cloud
Testing
Selenium integration allows you to combine Selenium with
other tools and services to run automated tests. This can
help you catch bugs early, save time, and improve
deployment.
Page 13
BrowserStack,
Sauce Labs
CI/CD Tools
Jenkins, GitHub
Actions
TestNG, JUnit
Maven, Gradle
Selenium Intro
Software Construction
Development
Riphah International University
Have a
question?
Page 14
Selenium Intro
Software Construction
Development
Riphah International University
Thank
You!
Presented By
Hafiz Rizwan Umar
Presentation
Riphah International University

More Related Content

Similar to Presentation on Introduction to Selenium (20)

PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PPT
Selenium
Daksh Sharma
 
PPT
Intro Of Selenium
Kai Feng Zhang
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPTX
Selenium Tutorial for Beginners - TIB Academy
TIB Academy
 
PPT
Selenium Primer
gueste1e4db
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PPTX
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
PDF
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
PPSX
Selenium - Introduction
ANKUR-BA
 
PPTX
Selenium - Introduction
Sachin-QA
 
PPT
Selenium
Ruturaj Doshi
 
PPTX
Selenium
Satyam Pandey
 
PDF
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
PPTX
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPT
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
Selenium
Daksh Sharma
 
Intro Of Selenium
Kai Feng Zhang
 
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium Tutorial for Beginners - TIB Academy
TIB Academy
 
Selenium Primer
gueste1e4db
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
Selenium - Introduction
ANKUR-BA
 
Selenium - Introduction
Sachin-QA
 
Selenium
Ruturaj Doshi
 
Selenium
Satyam Pandey
 
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
Test Automation Using Selenium
Nikhil Kapoor
 
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 

Recently uploaded (20)

PPTX
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Import Data Form Excel to Tally Services
Tally xperts
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Ad

Presentation on Introduction to Selenium

  • 1. Seleniu m Intro Presentation Riphah International University Course Instructor Dr Waqar Mehmood Sap Id Present By Hafiz Rizwan Umar 46690
  • 2. Agenda Intro of Selenium Locators in selenium Handling Web Element Grid & Parallel Execution Components Features & Advantages WebDrive r Key Performance Indicators Selenium Intro Software Construction Development Presentation Riphah International University Challenges Best Practices Integrations Career Opportunities
  • 3. Page 1 Cross Browser Automation testing What is Selenium? Selenium was born out of the need for automated web application testing. Before Selenium, most testing was done manually, which was slow, costly, and error-prone. It supports different browsers like Chrome, Firefox, Edge, Safari. It automates browsers and supports multiple programming languages. Primarily used for functional and regression testing. Selenium Intro Software Construction Development Riphah International University
  • 4. Page 2 Jason Huggins Simon Stewart Revolution Of Selenium Created Selenium Core Created Selenium WebDriver Paul Hammant Philippe Hanrigou Developed Selenium RC Developed Selenium Grid Selenium has transformed web automation testing since its inception in 2004. Initially developed by Jason Huggins as Selenium Core, it faced security restrictions, leading to the creation of Selenium RC (2005) by Paul Hammant, which introduced a proxy server for cross- domain testing. However, Selenium WebDriver (2008) by Simon Stewart replaced RC by directly controlling browsers using native APIs, making tests faster and more stable. To enhance scalability, Selenium Grid (2011) by Philippe Hanrigou enabled parallel execution. In Selenium 2 (2011), WebDriver officially replaced RC, marking a significant advancement. Selenium 3 (2016) improved browser compatibility, while Selenium 4 (2021-Present) introduced W3C-compliant WebDriver, relative locators, and enhanced debugging, making it the most efficient and modern web automation tool today. Selenium Intro Software Construction Development Riphah International University
  • 5. Selenium Componen ts Selenium consists of four major components: Selenium IDE Selenium Grid Selenium WebDriver Selenium RC Record and playback tool for test cases. Executes tests on multiple machines & browsers simultaneously. Interacts with web elements programmatically. Legacy component replaced by WebDriver. Page 3 Selenium Intro Software Construction Development Riphah International University
  • 6. Selenium IDE • A browser extension for Firefox and Chrome. • Allows users to record, edit, and debug test cases. • Best suited for beginners and quick prototyping. • Generates test scripts in different languages. Page 4 Selenium Intro Software Construction Development Riphah International University
  • 7. Selenium WebDriver • Core Selenium component that directly interacts with web browsers. • Does not require a browser GUI to execute tests. • Supports different programming languages (Java, Python, C#, JavaScript, Ruby). • More powerful and flexible than Selenium IDE. Page 5 Selenium Intro Software Construction Development Riphah International University
  • 8. Selenium Grid • Used for parallel test execution across multiple machines/browsers. • Improves test execution speed and efficiency. • Uses a Hub-Node architecture: • Hub: Controls test execution. • Node: Executes tests on different browsers/machines. Page 6 Selenium Intro Software Construction Development Riphah International University
  • 9. Career Opportuniti es Career Opportunities with Selenium Automation Test Engineer QA Engineer Software Developer in Test (SDET) Freelance Selenium Tester DevOps Engineer (CI/CD integration) Page 7 Selenium Intro Software Construction Development Riphah International University
  • 10. Challenges in Selenium ⚠ Limited support for desktop & mobile apps ⚠ Handling dynamic elements & pop-ups can be tricky ⚠ Needs third-party tools for reporting ⚠ Steep learning curve for beginners Page 8 Selenium Intro Software Construction Development Riphah International University
  • 11. Selenium Best Practices ✔ Use explicit waits instead of Thread.sleep() ✔ Follow the Page Object Model (POM) for maintainability ✔ Use headless browsers for faster execution ✔ Run tests in parallel using Selenium Grid ✔ Use logging & reporting tools (Allure, TestNG, Extent Reports) Page 9 Selenium Intro Software Construction Development Riphah International University
  • 12. Selenium vs Other Automati on Tools FEATURES SELENIUM QTP/UFT CYPRESS OPEN SOURCE ✅ ❌ ✅ SUPPORTS MULTIPLE BROWSERS ✅ ✅ ✅ MOBILE TESTING ❌ ✅ ❌ Page 10 Selenium Intro Software Construction Development Riphah International University
  • 13. Locators in Selenium ID DRIVER.FINDELEMENT(BY.ID("USERNAME")) → NAME DRIVER.FINDELEMENT(BY.NAME("PASSWORD")) → CLASS NAME DRIVER.FINDELEMENT(BY.CLASSNAME("LOGIN-BTN")) → TAG NAME DRIVER.FINDELEMENT(BY.TAGNAME("A")) → CSS SELECTOR DRIVER.FINDELEMENT(BY.CSSSELECTOR("#LOGIN")) → XPATH DRIVER.FINDELEMENT(BY.XPATH("//BUTTON[@ID='LOGIN']")) → Page 11 Selenium Intro Software Construction Development Riphah International University
  • 14. Language s Selenium Supported Languages Java Languages Python Language C - sharp Language JavaScript Language Ruby Language Selenium WebDriver supports multiple programming languages Page 12 Selenium Intro Software Construction Development Riphah International University
  • 15. Selenium Integratio ns Testing Frameworks Build Tools Cloud Testing Selenium integration allows you to combine Selenium with other tools and services to run automated tests. This can help you catch bugs early, save time, and improve deployment. Page 13 BrowserStack, Sauce Labs CI/CD Tools Jenkins, GitHub Actions TestNG, JUnit Maven, Gradle Selenium Intro Software Construction Development Riphah International University
  • 16. Have a question? Page 14 Selenium Intro Software Construction Development Riphah International University
  • 17. Thank You! Presented By Hafiz Rizwan Umar Presentation Riphah International University