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
Ad

More Related Content

Similar to Presentation on Introduction to Selenium (20)

What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
bigspire
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
Ray Business Technologies
 
Selenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt LtdSelenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt Ltd
qrsolutionsindia
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
STLAB.pptx
STLAB.pptxSTLAB.pptx
STLAB.pptx
KALPANAC20
 
ST LAB-1.pptx
ST LAB-1.pptxST LAB-1.pptx
ST LAB-1.pptx
KALPANAC20
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
Archana Krushnan
 
Selenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and HowSelenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and How
KiwiQA
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
kalichargn70th171
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
AnanthReddy38
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Python selenium
Python seleniumPython selenium
Python selenium
Ducat
 
Selenium
SeleniumSelenium
Selenium
Jahan Murugassan
 
Automate Web Apps With Selenium
Automate Web Apps With SeleniumAutomate Web Apps With Selenium
Automate Web Apps With Selenium
Edureka!
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Selenium Testing The Complete Step-by-Step Tutorial.pdfSelenium Testing The Complete Step-by-Step Tutorial.pdf
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
Selenium
SeleniumSelenium
Selenium
Satyam Pandey
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
bigspire
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
Ray Business Technologies
 
Selenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt LtdSelenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt Ltd
qrsolutionsindia
 
Selenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and HowSelenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and How
KiwiQA
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
kalichargn70th171
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
AnanthReddy38
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Python selenium
Python seleniumPython selenium
Python selenium
Ducat
 
Automate Web Apps With Selenium
Automate Web Apps With SeleniumAutomate Web Apps With Selenium
Automate Web Apps With Selenium
Edureka!
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Selenium Testing The Complete Step-by-Step Tutorial.pdfSelenium Testing The Complete Step-by-Step Tutorial.pdf
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 

Recently uploaded (20)

Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
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