SlideShare a Scribd company logo
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium
Webdriver
Tutorial for Cross
Browser Testing
www.lambdatest.com
Components of the
Selenium Suite
● Selenium Integrated Development
Environment (IDE)
● Selenium Remote Control (RC)
● Selenium WebDriver
● Selenium Grid
Selenium Integrated
Development
Environment
Selenium IDE is a simple Firefox
Plugin and it is used to record &
playback scripts. However, the
Selenium IDE can only be used to
write automation scripts for automating
testing of simple use cases. Selenium
IDE does not support Conditional
statements, Exception handling, loops,
screenshot capture, etc.
Selenium Remote
Control
For testing complex scenarios,
Selenium Remote Control (RC) can
be used. It is based on the client-
server model which makes it possible
to execute tests on the browser that is
controlled by the server. There are
client libraries in different
programming languages which make
it easy for developers to write
effective test cases
Selenium WebDriver
The primary focus of our Selenium
WebDriver tutorial. By far, we know
that Selenium IDE is GUI based,
where Selenium RC is a standalone
Java program that will allow you to
execute HTML test suites.
Selenium WebDriver framework is
more widely used when compared
to Selenium IDE & Selenium RC.
Serial testing is fine till the time you
have to test code that is confined to
few browsers, operating systems, or
devices. However, the testing
methodology would falter once
testing has to be formed in an
environment that has multiple
combinations.
Selenium Grid
As a part of Selenium WebDriver tutorial,
it is imperative to have a look at the
major blocks that comprise the Selenium
WebDriver architecture:
● Selenium Client Libraries
● JSON Wire Protocol
● Browser Drivers
● Browsers
Selenium WebDriver
Architecture
Selenium Client
Libraries
As mentioned earlier, developers
can use Selenium to write test
code in different languages like
C#, Java, Python, Perl, etc. The
multi-language support is possible
due to Selenium Client Libraries or
Selenium Language Bindings.
JSON Wire Protocol
JSON (JavaScript Object Notation)
Wire Protocol facilitates the
transfer of data between the Client
& Server. It is REST
(Representational State Transfer)
based API. Each browser will have
its own browser driver.
Browser Driver is mainly used for
communicating with the
browsers. Since the internal logic
of the browser & its functionality
is not revealed, Browser Driver
ensures the necessary layer of
‘encapsulation’ in order to keep
execution level details more
abstract.
Browser Drivers
Since Browser Drivers are
available for popular browsers
like Chrome, Firefox, Internet
Explorer, Safari, Microsoft Edge,
etc., you can use either of them
for performing cross browser
testing. It should be noted that
you cannot perform cross
browser testing of a website on a
browser whose Browser Driver is
not publicly available.
Browsers
Now that you are aware of the
basics of Selenium and Browser
Drivers, it is time we have a look
at a simple WebDriver script in
our Selenium WebDriver tutorial.
Before we look at the example,
please make sure that you have
the programming environment
ready i.e. download the IDE of
your choice (We are using the
with all the required
packages/software downloaded
from the Eclipse Marketplace).
Selenium WebDriver In Action
The previous section in our
Selenium WebDriver tutorial, we
used the Firefox WebDriver. In this
section, we look at the changes that
are required in case you are using
the Chrome browser for testing.
You should ensure that the
standalone ChromeDriver binary
(which is different than the Chrome
browser binary) is available in the
right path or it is present as a part
of the webdriver.chrome.driver
environment variable.
Chrome WebDriver example
So far in our Selenium WebDriver
tutorial, we have demonstrated
cross browser testing using the
Firefox WebDriver & Chrome
WebDriver. In this section, we
look at the changes that are
required in case you are using the
Chrome browser for testing. You
should download the correct
Internet Explorer WebDriver (32
bit/64 bit) from here or here.
Internet Explorer
WebDriver Example
That was all from our end in our basic Selenium WebDriver tutorial. We hope this
was useful to you. Do share your questions and thoughts on the same in the
comment section below. We will be upcoming with more blogs revolving around
Selenium, so stay tuned!
www.lambdatest.com
CONCLUSION
HAPPY TESTING!!

More Related Content

What's hot (20)

PDF
Introduction to Selenium Automation
Mindfire Solutions
 
ODP
Introduction to Selenium
Knoldus Inc.
 
PPT
Selenium
Adam Goucher
 
PPS
Selenium Demo
ankitslide
 
PPTX
Selenium - Introduction
Sachin-QA
 
PDF
Python Testing 101 with Selenium
Leonardo Jimenez
 
PDF
Selenium Framework using Java | Selenium Tutorial | Selenium Training Online ...
Edureka!
 
PDF
Testing world selenium_start_chapter1 (1)
Testing World
 
PPTX
Selenium
Andrew Krug
 
PPTX
Introduction to selenium
Archana Krushnan
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PPTX
QSpiders - Selenium Webdriver
Qspiders - Software Testing Training Institute
 
PDF
Selenium
Doron Segal
 
PDF
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Edureka!
 
PPT
Web Test Automation with Selenium
vivek_prahlad
 
PPT
Selenium ppt
Pavan Kumar
 
DOCX
Selenium training course_content_3_days
sayhi2sudarshan
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium training eduxfactor
KapilSai3
 
PPTX
Step by step instructions to execute selenium automation testing
Alisha Henderson
 
Introduction to Selenium Automation
Mindfire Solutions
 
Introduction to Selenium
Knoldus Inc.
 
Selenium
Adam Goucher
 
Selenium Demo
ankitslide
 
Selenium - Introduction
Sachin-QA
 
Python Testing 101 with Selenium
Leonardo Jimenez
 
Selenium Framework using Java | Selenium Tutorial | Selenium Training Online ...
Edureka!
 
Testing world selenium_start_chapter1 (1)
Testing World
 
Selenium
Andrew Krug
 
Introduction to selenium
Archana Krushnan
 
Selenium By Pravin Mishra
Pravin Mishra
 
QSpiders - Selenium Webdriver
Qspiders - Software Testing Training Institute
 
Selenium
Doron Segal
 
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Edureka!
 
Web Test Automation with Selenium
vivek_prahlad
 
Selenium ppt
Pavan Kumar
 
Selenium training course_content_3_days
sayhi2sudarshan
 
Selenium
Batch2016
 
Selenium training eduxfactor
KapilSai3
 
Step by step instructions to execute selenium automation testing
Alisha Henderson
 

Similar to Selenium Web Driver Tutorial for Cross Browser Testing (20)

PDF
anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf
SunilNagaraj10
 
PPTX
An overview of selenium webdriver
Anuraj S.L
 
PPTX
Selenium Basics and Overview topics.pptx
sountharyaravi010
 
PPTX
Selenium Basics and Overview1233444.pptx
sountharyaravi010
 
PPTX
Selenium web driver
Roman Savitskiy
 
PPT
Selenium Java for Beginners by Sujit Pathak
Software Testing Board
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPTX
Selenium presentation
shivani thakur
 
PPTX
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
Matthew Allen
 
PPTX
Selenium
abiramimaya
 
PDF
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
PPTX
Intro
Vivek Rajasekar
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PPTX
Selenium Automation
Anuradha Malalasena
 
PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
PPTX
Automation With Selenium
kgrammer
 
PDF
Web driver selenium simplified
Vikas Singh
 
PPTX
Module 01 - WebDriver Basics
NPN Training
 
PPTX
Selenium.pptx
orbitprojects
 
anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf
SunilNagaraj10
 
An overview of selenium webdriver
Anuraj S.L
 
Selenium Basics and Overview topics.pptx
sountharyaravi010
 
Selenium Basics and Overview1233444.pptx
sountharyaravi010
 
Selenium web driver
Roman Savitskiy
 
Selenium Java for Beginners by Sujit Pathak
Software Testing Board
 
Test Automation Using Selenium
Nikhil Kapoor
 
Selenium presentation
shivani thakur
 
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
Matthew Allen
 
Selenium
abiramimaya
 
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Selenium Automation
Anuradha Malalasena
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Automation With Selenium
kgrammer
 
Web driver selenium simplified
Vikas Singh
 
Module 01 - WebDriver Basics
NPN Training
 
Selenium.pptx
orbitprojects
 
Ad

More from Sarah Elson (20)

PDF
Top 5 Software Testing Myths in The Industry
Sarah Elson
 
PPTX
Metrics & Challenges for Testing Streaming Applications in 2019
Sarah Elson
 
PPTX
How to Perform Test Automation With Gauge & Selenium Framework
Sarah Elson
 
PPTX
Why You Need to Care About Automated Functional Testing in 2019
Sarah Elson
 
PPTX
Top Java Script Frameworks for 2019
Sarah Elson
 
PPTX
Cross Browser Automation Testing Using Watir
Sarah Elson
 
PPTX
How to Implement Continuous Testing in Dev Ops Like a Pro
Sarah Elson
 
PPTX
CSS With Feature Detection for Cross Browser Compatibility
Sarah Elson
 
PPTX
Skyrocket Your Cross Browser Testing with Minimal Effort
Sarah Elson
 
PPTX
Using galen framework for automated cross browser layout testing
Sarah Elson
 
PPTX
17 Ways to Save Time on Manual Cross Browser Testing
Sarah Elson
 
PPTX
What is Continuous Integration and Continuous Delivery
Sarah Elson
 
PPTX
Overcoming The Challenges Faced in Exploratory Testing
Sarah Elson
 
PPTX
Guide to Browser Compatibility for Online Learning Platforms
Sarah Elson
 
PDF
What is the Need for Software Testing?
Sarah Elson
 
PPTX
Top 15 Interview Questions for Manual Testers
Sarah Elson
 
PPTX
Design Patterns for Micro Service Architecture
Sarah Elson
 
PPTX
Top 13 Mistakes Committed by Angular Java script Developers
Sarah Elson
 
PPTX
Importance of a Test Management Tool for Your Project
Sarah Elson
 
PPTX
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Sarah Elson
 
Top 5 Software Testing Myths in The Industry
Sarah Elson
 
Metrics & Challenges for Testing Streaming Applications in 2019
Sarah Elson
 
How to Perform Test Automation With Gauge & Selenium Framework
Sarah Elson
 
Why You Need to Care About Automated Functional Testing in 2019
Sarah Elson
 
Top Java Script Frameworks for 2019
Sarah Elson
 
Cross Browser Automation Testing Using Watir
Sarah Elson
 
How to Implement Continuous Testing in Dev Ops Like a Pro
Sarah Elson
 
CSS With Feature Detection for Cross Browser Compatibility
Sarah Elson
 
Skyrocket Your Cross Browser Testing with Minimal Effort
Sarah Elson
 
Using galen framework for automated cross browser layout testing
Sarah Elson
 
17 Ways to Save Time on Manual Cross Browser Testing
Sarah Elson
 
What is Continuous Integration and Continuous Delivery
Sarah Elson
 
Overcoming The Challenges Faced in Exploratory Testing
Sarah Elson
 
Guide to Browser Compatibility for Online Learning Platforms
Sarah Elson
 
What is the Need for Software Testing?
Sarah Elson
 
Top 15 Interview Questions for Manual Testers
Sarah Elson
 
Design Patterns for Micro Service Architecture
Sarah Elson
 
Top 13 Mistakes Committed by Angular Java script Developers
Sarah Elson
 
Importance of a Test Management Tool for Your Project
Sarah Elson
 
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Sarah Elson
 
Ad

Recently uploaded (20)

PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 

Selenium Web Driver Tutorial for Cross Browser Testing

  • 3. Components of the Selenium Suite ● Selenium Integrated Development Environment (IDE) ● Selenium Remote Control (RC) ● Selenium WebDriver ● Selenium Grid
  • 4. Selenium Integrated Development Environment Selenium IDE is a simple Firefox Plugin and it is used to record & playback scripts. However, the Selenium IDE can only be used to write automation scripts for automating testing of simple use cases. Selenium IDE does not support Conditional statements, Exception handling, loops, screenshot capture, etc.
  • 5. Selenium Remote Control For testing complex scenarios, Selenium Remote Control (RC) can be used. It is based on the client- server model which makes it possible to execute tests on the browser that is controlled by the server. There are client libraries in different programming languages which make it easy for developers to write effective test cases
  • 6. Selenium WebDriver The primary focus of our Selenium WebDriver tutorial. By far, we know that Selenium IDE is GUI based, where Selenium RC is a standalone Java program that will allow you to execute HTML test suites. Selenium WebDriver framework is more widely used when compared to Selenium IDE & Selenium RC.
  • 7. Serial testing is fine till the time you have to test code that is confined to few browsers, operating systems, or devices. However, the testing methodology would falter once testing has to be formed in an environment that has multiple combinations. Selenium Grid
  • 8. As a part of Selenium WebDriver tutorial, it is imperative to have a look at the major blocks that comprise the Selenium WebDriver architecture: ● Selenium Client Libraries ● JSON Wire Protocol ● Browser Drivers ● Browsers Selenium WebDriver Architecture
  • 9. Selenium Client Libraries As mentioned earlier, developers can use Selenium to write test code in different languages like C#, Java, Python, Perl, etc. The multi-language support is possible due to Selenium Client Libraries or Selenium Language Bindings.
  • 10. JSON Wire Protocol JSON (JavaScript Object Notation) Wire Protocol facilitates the transfer of data between the Client & Server. It is REST (Representational State Transfer) based API. Each browser will have its own browser driver.
  • 11. Browser Driver is mainly used for communicating with the browsers. Since the internal logic of the browser & its functionality is not revealed, Browser Driver ensures the necessary layer of ‘encapsulation’ in order to keep execution level details more abstract. Browser Drivers
  • 12. Since Browser Drivers are available for popular browsers like Chrome, Firefox, Internet Explorer, Safari, Microsoft Edge, etc., you can use either of them for performing cross browser testing. It should be noted that you cannot perform cross browser testing of a website on a browser whose Browser Driver is not publicly available. Browsers
  • 13. Now that you are aware of the basics of Selenium and Browser Drivers, it is time we have a look at a simple WebDriver script in our Selenium WebDriver tutorial. Before we look at the example, please make sure that you have the programming environment ready i.e. download the IDE of your choice (We are using the with all the required packages/software downloaded from the Eclipse Marketplace). Selenium WebDriver In Action
  • 14. The previous section in our Selenium WebDriver tutorial, we used the Firefox WebDriver. In this section, we look at the changes that are required in case you are using the Chrome browser for testing. You should ensure that the standalone ChromeDriver binary (which is different than the Chrome browser binary) is available in the right path or it is present as a part of the webdriver.chrome.driver environment variable. Chrome WebDriver example
  • 15. So far in our Selenium WebDriver tutorial, we have demonstrated cross browser testing using the Firefox WebDriver & Chrome WebDriver. In this section, we look at the changes that are required in case you are using the Chrome browser for testing. You should download the correct Internet Explorer WebDriver (32 bit/64 bit) from here or here. Internet Explorer WebDriver Example
  • 16. That was all from our end in our basic Selenium WebDriver tutorial. We hope this was useful to you. Do share your questions and thoughts on the same in the comment section below. We will be upcoming with more blogs revolving around Selenium, so stay tuned! www.lambdatest.com CONCLUSION