SlideShare a Scribd company logo
AN OVERVIEW
OF
SELENIUM WEBDRIVER
ANURAJ S.L
Lead QA Engineer
What is Selenium?
anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf
Is that what we are looking for ?

What is Selenium?
Selenium is a free (open
source) automated testing suite
for web applications across
different browsers and
platforms.
In short it automates browser.
That’s it.
SELENIUM AUTOMATES BROWSERS
ALL MAJOR BROWSERS
ON ALL MAJOR (DESKTOP) OPERATING SYSTEMS
… AND MOBILE*
* Via Appium, Selendroid, ios-driver and WP driver.
No Proprietary IDE / Language
Who developed Selenium?
Who developed Selenium?
Since Selenium is a collection of
different tools, it had different
developers as well. Some key
contributors
Jason Huggins
Patrick Lightbody
Shinya Kasatani
Why the name Selenium ?
Why Selenium ?
It came from a joke which Jason cracked one time to
his team. Another automated testing framework was
popular during Selenium's development, and it was by
the company called Mercury Interactive (yes, the
company who originally made QTP before it was
acquired by HP). Since Selenium is a well-known
antidote for Mercury poisoning, Jason suggested that
name.
Why Selenium ?
The name, Selenium, was
selected because selenium
mineral supplements serve as
a cure for mercury poisoning,
Huggins explained.
Why do we Automate ?
Why do we Automate ?
What do we do with Selenium ?
Components of Selenium
It has mainly four components.
 Selenium Integrated Development Environment (IDE)
 Selenium Remote Control (RC)
 WebDriver
 Selenium Grid
Selenium IDE
Components of Selenium
Selenium IDE
PROS:
• No programming skills required
• Easy record and playback
• Step by step debugger
• Play tests on any browser
• Export tests as Webdriver tests
• Extensible
CONS:
• Based on Selenium Core
• No code reuse
• No iterations and conditional statements
• No exception handling
• No error recovery
A Firefox Add-on for recording, editing and running tests.
Over 10M downloads to date!
Selenium IDE
PROS:
• No programming skills required
• Easy record and playback
• Step by step debugger
• Play tests on any browser
• Export tests as Webdriver tests
• Extensible
CONS:
• Based on Selenium Core
• No code reuse
• No iterations and conditional statements
• No exception handling
• No error recovery
A Firefox Add-on for recording, editing and running tests.
Over 10M downloads to date!
Selenium RC
Components of Selenium
Selenium RC
•You first need to launch a separate application called Selenium Remote Control (RC) Server.
•The Selenium RC Server acts as a "middleman" between your Selenium commands and your browser.
•When you begin testing, Selenium RC Server "injects" a Javascript program called Selenium Core into the browser.
•Once injected, Selenium Core will start receiving instructions relayed by the RC Server from your test program.
•When the instructions are received, Selenium Core will execute them as Javascript commands.
•The browser will obey the instructions of Selenium Core, and will relay its response to the RC Server.
•The RC Server will receive the response of the browser and then display the results to you.
•RC Server will fetch the next instruction from your test script to repeat the whole cycle .
Selenium RC
Selenium 2
Selenium
WebDriver
Selenium
Grid
Selenium
IDE
Browser
Automation API
Local + Remote
Centrally managed
parallel execution in
diverse environments
A FF record-playback
tool mostly used for
fast prototyping
Selenium WebDriver
Components of Selenium
What is WebDriver ?
What is WebDriver ?
WebDriver is a web automation
framework that allows you to execute
your tests against different
browsers.
IEDriverServer.exe
XPCOM
COM
webdriver.xpi
Selenium WebDriver
What is WebDriver ?
Have you really understood
What actually is WebDriver?
What is WebDriver ?
The official site says that:
“WebDriver is a tool for automating web application testing, and in particular to verify that they work as expected.
It aims to provide a friendly API that’s easy to explore and understand, easier to use than the Selenium-RC (1.0)
API, which will help to make your tests easier to read and maintain.
It’s not tied to any particular test framework, so it can be used equally well in a unit testing or from a plain old
“main” method.”
What is WebDriver ?
Generally there might have questions about this definition.
What is a framework?
What is an API?
How does Selenium RC works?
What is unit testing ?
Too many questions instead of an answer
What is WebDriver ?
Is there an easier way of
understanding what
WebDriver test automation
is?
What is WebDriver ?
Can test automation with Selenium WebDriver be explained in very simple terms so that everyone can
understand it, even without having any technical knowledge?
An easy way of explaining how a new thing is through an analogy with something else that
you already know.
WebDriver test
automation is like driving
a taxi !!!

What is WebDriver ?
WebDriver test
automation is like driving
a taxi !!!

What is WebDriver ?
REALLY ????
What is WebDriver ?
The WebDriver points to the analogy.
Everyone knows what a driver is and what he does.
Many people drive a car.
Those who don't drive a car use the services of taxi drivers.
What is WebDriver ?
Who participates in taxi driving?
3 actors are involved:
1. The customer
2. The taxi driver
3. The car
What is WebDriver ?
What happens while driving a taxi?
Dialogues between the 3 actors involved.
So this is the analogy
used to explain test
automation with
WebDriver.
What is WebDriver ?
Test automation with WebDriver is like driving a taxi.
It happens through dialogues between the 3 actors involved.
What is WebDriver ?
Lets have a closer look at taxi driving.
A customer gets into a cab.
He gives instructions to the taxi driver about
1) the address and
2) the route to take
What is WebDriver ?
Now the cab driver drives the taxi, the car in this case.
While driving the taxi, the driver gives commands to the car
using the wheel, pedals, etc.
What is WebDriver ?
The driver receives information about the cab’s status on the
meters and makes decisions based on it.
The car executes the taxi driver commands to get to the desired
address.
How does this help with
understanding test
automation ?
What is WebDriver ?
What is WebDriver ?
Let's ask about test automation the same questions asked for
driving a taxi.
Who participates in test automation?
There are 3 actors in test automation with WebDriver:
1. tester that writes the automation code
2. browser driver
3. browser
What is WebDriver ?
What happens during test automation?
Dialogue between the 3 actors involved.
How do the analogy between
taxi driving and web driver
test automation work?
What is WebDriver ?
How do the analogy between
taxi driving and web driver
test automation work?
What is WebDriver ?
Let's see:
A test engineer is like a taxi customer.
The test automation code is like the customer instructions to
the taxi driver.
The browser driver object is like the taxi driver.
The browser is like a car.
Does it start making sense?
Taxi driving versus test
automation?
What is WebDriver ?
What is WebDriver ?
Let's have a closer look at test automation.
The test engineer writes code with instructions for the browser
driver object.
He tells the browser driver object to
1) open the site and
2) interact with the site elements.
What is WebDriver ?
The browser driver drives the browser.
It does this by sending commands to the browser.
What is WebDriver ?
The browser driver receives information from the browser about
• status of site elements (are they visible, are they enabled)
• values of site elements
and makes decisions based on it.
The browser executes the commands received from the browser
driver.
Is the analogy clear now?
What is WebDriver ?
WebDriver Vs Selenium RC
Both WebDriver and Selenium RC have following features:
 They both allow you to use a programming language in designing your
test scripts.
 They both allow you to run your tests against different browsers.
So how do they differ ?
WebDriver Vs Selenium RC
Architecture : WebDriver's architecture is simpler than Selenium
RC's.
It controls the browser from the OS level. All you need are your programming
language's IDE (which contains your Selenium commands) and a browser.
WebDriver Vs Selenium RC
Speed:
WebDriver Vs Selenium RC
Real-life Interaction:
WebDriver Vs Selenium RC
WebDriver Vs Selenium RC
References
 Guru 99 - http://www.guru99.com
 Test-able Blog - http://test-able.blogspot.in
THANK YOU !!!
Thank You !!!

More Related Content

PPTX
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
Matthew Allen
 
PPTX
Introduction to the Selenium_Session1.pptx
VimalJaswal
 
PDF
selenium-webdriver-interview-questions.pdf
AnuragMourya8
 
PDF
Designing an effective hybrid apps automation framework
Andrea Tino
 
PPTX
Introduction to APIs & how to automate APIs testing with selenium web driver?
BugRaptors
 
PPTX
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Simplilearn
 
PDF
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
PPTX
Selenium Basics and Overview topics.pptx
sountharyaravi010
 
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
Matthew Allen
 
Introduction to the Selenium_Session1.pptx
VimalJaswal
 
selenium-webdriver-interview-questions.pdf
AnuragMourya8
 
Designing an effective hybrid apps automation framework
Andrea Tino
 
Introduction to APIs & how to automate APIs testing with selenium web driver?
BugRaptors
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Simplilearn
 
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
Selenium Basics and Overview topics.pptx
sountharyaravi010
 

Similar to anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf (20)

PPTX
Selenium Basics and Overview1233444.pptx
sountharyaravi010
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPTX
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
PPTX
Python selenium
Ducat
 
PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
PDF
Introduction to Selenium Automation
Mindfire Solutions
 
PPTX
Selenide vs. Selenium: The War Of Technologies
BugRaptors
 
DOCX
Selenium WebDriver FAQ's
Praveen Gorantla
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PPTX
Selenium Web Driver Tutorial for Cross Browser Testing
Sarah Elson
 
PPTX
Basics of selenium containing features of selenium
Madhuri Lonikar
 
PDF
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPTX
Web driver interface
Ducat
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PDF
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
PPTX
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
PDF
Selenium Webdriver Interview Questions
Jai Singh
 
PPTX
Selenium
Milind Hali
 
PDF
7.pdf
AffanIT1
 
Selenium Basics and Overview1233444.pptx
sountharyaravi010
 
Test Automation Using Selenium
Nikhil Kapoor
 
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Python selenium
Ducat
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Introduction to Selenium Automation
Mindfire Solutions
 
Selenide vs. Selenium: The War Of Technologies
BugRaptors
 
Selenium WebDriver FAQ's
Praveen Gorantla
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
Selenium Web Driver Tutorial for Cross Browser Testing
Sarah Elson
 
Basics of selenium containing features of selenium
Madhuri Lonikar
 
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Test Automation and Selenium
Karapet Sarkisyan
 
Web driver interface
Ducat
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Selenium Webdriver Interview Questions
Jai Singh
 
Selenium
Milind Hali
 
7.pdf
AffanIT1
 

Recently uploaded (20)

PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
CDH. pptx
AneetaSharma15
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
CDH. pptx
AneetaSharma15
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 

anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf

  • 4. Is that what we are looking for ? 
  • 5. What is Selenium? Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. In short it automates browser. That’s it.
  • 6. SELENIUM AUTOMATES BROWSERS ALL MAJOR BROWSERS ON ALL MAJOR (DESKTOP) OPERATING SYSTEMS
  • 7. … AND MOBILE* * Via Appium, Selendroid, ios-driver and WP driver.
  • 8. No Proprietary IDE / Language
  • 10. Who developed Selenium? Since Selenium is a collection of different tools, it had different developers as well. Some key contributors Jason Huggins Patrick Lightbody Shinya Kasatani
  • 11. Why the name Selenium ?
  • 12. Why Selenium ? It came from a joke which Jason cracked one time to his team. Another automated testing framework was popular during Selenium's development, and it was by the company called Mercury Interactive (yes, the company who originally made QTP before it was acquired by HP). Since Selenium is a well-known antidote for Mercury poisoning, Jason suggested that name.
  • 13. Why Selenium ? The name, Selenium, was selected because selenium mineral supplements serve as a cure for mercury poisoning, Huggins explained.
  • 14. Why do we Automate ?
  • 15. Why do we Automate ?
  • 16. What do we do with Selenium ?
  • 17. Components of Selenium It has mainly four components.  Selenium Integrated Development Environment (IDE)  Selenium Remote Control (RC)  WebDriver  Selenium Grid
  • 19. Selenium IDE PROS: • No programming skills required • Easy record and playback • Step by step debugger • Play tests on any browser • Export tests as Webdriver tests • Extensible CONS: • Based on Selenium Core • No code reuse • No iterations and conditional statements • No exception handling • No error recovery A Firefox Add-on for recording, editing and running tests. Over 10M downloads to date!
  • 20. Selenium IDE PROS: • No programming skills required • Easy record and playback • Step by step debugger • Play tests on any browser • Export tests as Webdriver tests • Extensible CONS: • Based on Selenium Core • No code reuse • No iterations and conditional statements • No exception handling • No error recovery A Firefox Add-on for recording, editing and running tests. Over 10M downloads to date!
  • 22. Selenium RC •You first need to launch a separate application called Selenium Remote Control (RC) Server. •The Selenium RC Server acts as a "middleman" between your Selenium commands and your browser. •When you begin testing, Selenium RC Server "injects" a Javascript program called Selenium Core into the browser. •Once injected, Selenium Core will start receiving instructions relayed by the RC Server from your test program. •When the instructions are received, Selenium Core will execute them as Javascript commands. •The browser will obey the instructions of Selenium Core, and will relay its response to the RC Server. •The RC Server will receive the response of the browser and then display the results to you. •RC Server will fetch the next instruction from your test script to repeat the whole cycle .
  • 24. Selenium 2 Selenium WebDriver Selenium Grid Selenium IDE Browser Automation API Local + Remote Centrally managed parallel execution in diverse environments A FF record-playback tool mostly used for fast prototyping
  • 27. What is WebDriver ? WebDriver is a web automation framework that allows you to execute your tests against different browsers.
  • 29. What is WebDriver ? Have you really understood What actually is WebDriver?
  • 30. What is WebDriver ? The official site says that: “WebDriver is a tool for automating web application testing, and in particular to verify that they work as expected. It aims to provide a friendly API that’s easy to explore and understand, easier to use than the Selenium-RC (1.0) API, which will help to make your tests easier to read and maintain. It’s not tied to any particular test framework, so it can be used equally well in a unit testing or from a plain old “main” method.”
  • 31. What is WebDriver ? Generally there might have questions about this definition. What is a framework? What is an API? How does Selenium RC works? What is unit testing ? Too many questions instead of an answer
  • 32. What is WebDriver ? Is there an easier way of understanding what WebDriver test automation is?
  • 33. What is WebDriver ? Can test automation with Selenium WebDriver be explained in very simple terms so that everyone can understand it, even without having any technical knowledge? An easy way of explaining how a new thing is through an analogy with something else that you already know.
  • 34. WebDriver test automation is like driving a taxi !!!  What is WebDriver ?
  • 35. WebDriver test automation is like driving a taxi !!!  What is WebDriver ? REALLY ????
  • 36. What is WebDriver ? The WebDriver points to the analogy. Everyone knows what a driver is and what he does. Many people drive a car. Those who don't drive a car use the services of taxi drivers.
  • 37. What is WebDriver ? Who participates in taxi driving? 3 actors are involved: 1. The customer 2. The taxi driver 3. The car
  • 38. What is WebDriver ? What happens while driving a taxi? Dialogues between the 3 actors involved.
  • 39. So this is the analogy used to explain test automation with WebDriver. What is WebDriver ? Test automation with WebDriver is like driving a taxi. It happens through dialogues between the 3 actors involved.
  • 40. What is WebDriver ? Lets have a closer look at taxi driving. A customer gets into a cab. He gives instructions to the taxi driver about 1) the address and 2) the route to take
  • 41. What is WebDriver ? Now the cab driver drives the taxi, the car in this case. While driving the taxi, the driver gives commands to the car using the wheel, pedals, etc.
  • 42. What is WebDriver ? The driver receives information about the cab’s status on the meters and makes decisions based on it. The car executes the taxi driver commands to get to the desired address.
  • 43. How does this help with understanding test automation ? What is WebDriver ?
  • 44. What is WebDriver ? Let's ask about test automation the same questions asked for driving a taxi. Who participates in test automation? There are 3 actors in test automation with WebDriver: 1. tester that writes the automation code 2. browser driver 3. browser
  • 45. What is WebDriver ? What happens during test automation? Dialogue between the 3 actors involved.
  • 46. How do the analogy between taxi driving and web driver test automation work? What is WebDriver ?
  • 47. How do the analogy between taxi driving and web driver test automation work? What is WebDriver ? Let's see: A test engineer is like a taxi customer. The test automation code is like the customer instructions to the taxi driver. The browser driver object is like the taxi driver. The browser is like a car.
  • 48. Does it start making sense? Taxi driving versus test automation? What is WebDriver ?
  • 49. What is WebDriver ? Let's have a closer look at test automation. The test engineer writes code with instructions for the browser driver object. He tells the browser driver object to 1) open the site and 2) interact with the site elements.
  • 50. What is WebDriver ? The browser driver drives the browser. It does this by sending commands to the browser.
  • 51. What is WebDriver ? The browser driver receives information from the browser about • status of site elements (are they visible, are they enabled) • values of site elements and makes decisions based on it. The browser executes the commands received from the browser driver.
  • 52. Is the analogy clear now? What is WebDriver ?
  • 53. WebDriver Vs Selenium RC Both WebDriver and Selenium RC have following features:  They both allow you to use a programming language in designing your test scripts.  They both allow you to run your tests against different browsers. So how do they differ ?
  • 54. WebDriver Vs Selenium RC Architecture : WebDriver's architecture is simpler than Selenium RC's. It controls the browser from the OS level. All you need are your programming language's IDE (which contains your Selenium commands) and a browser.
  • 56. WebDriver Vs Selenium RC Real-life Interaction:
  • 59. References  Guru 99 - http://www.guru99.com  Test-able Blog - http://test-able.blogspot.in