SlideShare a Scribd company logo
Naveen P.N
Trainer
Module 01 - WebDriver Basics
NPN TrainingTraining is the essence of success and
we are committed to it
www.npntraining.com
Course Topics `
WebDriver Basics
Module - I
Locators
Module - II
Exploring Selenium API - I
Module - III
Exploring Selenium API - II
Module - IV
Advance Locators
Module - V
Controlling Test Flow
Module - VI
Data Driven Testing
Module - IX
Module - X
Page Object Model & Page Factory
Module - XI
Keyword Driven Framework
Module - XII
Testing HTML5 Web Application
Advance Interactions of WebDriver
Module - VII
Understanding WebDriver events
Module - VIII
Selenium Grid
Module - XIII
Interview Preparation
Module - XV
Continuous Integration
Module - XIV
Attaching Selenium jars into project
Working with FirefoxDriver
Working with ChromeDriver
Working with InternetExplorerDriver
Exploring FirefoxBinary class
Firefox profile Manager
Overview of Selenium
Topics for the Module`
Attaching Selenium Documentation to eclipse
Exploring Proxy class
Difference between close() and quit()
Working with HTMLUnitDriver
Exploring FirefoxProfile and ProfilesIni class
Understanding DesiredCapabilities class
Maximizing and moving windows
Overview of WebDriver
WebDriver is an interface in Selenium API.
www.npntraining.com
Concreate Implementation of WebDriver interface
www.npntraining.com
Working with ChromeDriver
Chrome Driver is maintained / supported by the Chromium project itself. WebDriver works with Chrome
through the chromedriver binary (found on the chromium project’s download page).
www.npntraining.com
Working with InternetExplorerDriver
www.npntraining.com
Working with InternetExplorerDriver`
www.npntraining.com
Working with HTMLUnitDriver
This is currently the fastest and most lightweight implementation of WebDriver. HtmlUnitDriver
works behind the scenes. HtmlUnit is a java based implementation of a WebBrowser without a
GUI.
www.npntraining.com
Working with HTMLUnitDriver Contd…
i. None of the popular browsers uses the JavaScript engine used by HtmlUnit (Rhino). If you test JavaScript
using HtmlUnit the results may differ significantly from those browsers.
ii. When we say “JavaScript” we actually mean “JavaScript and the DOM”. Although the DOM is defined by
the W3C each browser has its own quirks and differences in their implementation of the DOM and in how
JavaScript interacts with it. HtmlUnit has an impressively complete implementation of the DOM and has
good support for using JavaScript, but it is no different from any other browser: it has its own quirks and
differences from both the W3C standard and the DOM implementations of the major browsers, despite its
ability to mimic other browsers.
iii. With WebDriver, we had to make a choice; do we enable HtmlUnit’s JavaScript capabilities and run the risk
of teams running into problems that only manifest themselves there, or do we leave JavaScript disabled,
knowing that there are more and more sites that rely on JavaScript? We took the conservative approach,
and by default have disabled support when we use HtmlUnit. With each release of both WebDriver and
HtmlUnit, we reassess this decision: we hope to enable JavaScript by default on the HtmlUnit at some
point.
HtmlUnitDriver driver =new HtmlUnitDriver(true)
Working with HTMLUnit Driver`
www.npntraining.com
Exploring Firefox Binary class
www.npntraining.com
Exploring Firefox Profiles
A profile in Firefox is a collection of bookmarks, browser settings, extensions, and history; in short
all your personal settings which is stored in separate location.
www.npntraining.com
Exploring FirefoxProfile Contd…`
www.npntraining.com
Exploring Proxy class
A proxy server is a server (a computer system or an application) that acts as an intermediary for requests
from clients seeking resources from other servers. A client connects to the proxy server, requesting some
service, such as a file, connection, web page, or other resource available from a different server and the proxy
server evaluates the request as a way to simplify and control its complexity.
www.npntraining.com
Exploring Proxy class Contd… `
www.npntraining.com
www.npntraining.com
Exploring DesiredCapabilities
DesiredCapabilities is a predefined class which is used to add additional capabilities to your
WebDriver instance
www.npntraining.com
Exploring DesiredCapabilities class Contd…`
www.npntraining.com
close() VS quit() `
www.npntraining.com
Maximizing, Moving and Resizing windows`
www.npntraining.com
What is WebDriver ? What are the concreate
implementation of
WebDriver ?
Name some of the abstract
methods present in
WebDriver interface ?
What are the different methods
present in WebDriver to locate
elements ?
What is the use of Firefox
Profile ?
What additional configuration
need to be done to start
internet explorer?
What is special about
HTMLUnitDriver ?
`
Agenda for Next Class
 Installing FireBug and FirePath
 Inspecting elements using Firebug and Firepath
 Different ways to locate web elements
 Using the By locating mechanism
 Understanding driver.findElement(By by)
 Understanding List<WebElement> driver.findElements(By by)
 Handling basic Authentication
www.npntraining.com
www.npntraining.com +91 9535584691

More Related Content

PPT
Chromium vs. Firefox
PPTX
[Mas 500] Web Basics
PDF
Nuxeo WebEngine: a practical introduction
PPTX
Going offline with JS (DDD Sydney)
PDF
Live Node.JS Training
PPTX
Web browser architecture
PDF
Shriver Center for Poverty Law: Website Training
PPTX
Step by step guide to create theme for liferay dxp 7
Chromium vs. Firefox
[Mas 500] Web Basics
Nuxeo WebEngine: a practical introduction
Going offline with JS (DDD Sydney)
Live Node.JS Training
Web browser architecture
Shriver Center for Poverty Law: Website Training
Step by step guide to create theme for liferay dxp 7

What's hot (20)

PPTX
Web development using nodejs
PDF
Web Application Solutions
PDF
OWASP AppSec USA 2017: Cookie Security – Myths and Misconceptions by David Jo...
PDF
The WebView Role in Hybrid Applications
PDF
Berlin.JAR: Web future without web frameworks
PPTX
Gwt session
PDF
5 best Java Frameworks
PDF
Hardware Acceleration in WebKit
PDF
PPTX
Cross browser web development
PDF
Spring Mvc
PDF
MVVM Light Toolkit Works Great, Less Complicated
PDF
Robe - A brand new robe for Dropwizard
PPT
Firefox vs. chrome
PPTX
Introduction to MERN
PDF
Microservices
PPTX
MEAN Stack
PDF
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
PDF
AIDA/Scribo
PDF
Firefox Architecture Overview
Web development using nodejs
Web Application Solutions
OWASP AppSec USA 2017: Cookie Security – Myths and Misconceptions by David Jo...
The WebView Role in Hybrid Applications
Berlin.JAR: Web future without web frameworks
Gwt session
5 best Java Frameworks
Hardware Acceleration in WebKit
Cross browser web development
Spring Mvc
MVVM Light Toolkit Works Great, Less Complicated
Robe - A brand new robe for Dropwizard
Firefox vs. chrome
Introduction to MERN
Microservices
MEAN Stack
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
AIDA/Scribo
Firefox Architecture Overview
Ad

Viewers also liked (20)

PDF
Tamaulipas, una entidad con vocación energética
PDF
[IUI 2017] Criteria Chains: A Novel Multi-Criteria Recommendation Approach
PDF
Geometria analitica
PDF
80,000lb Bristol Riggers Special Forklift For Sale Used
PDF
Module IV - MapReduce Programming - I
PDF
Write, Publish and Market Your Kindle Book in 4 Weeks
PPTX
Gastrointestinales
PPTX
Fibrilaciones cardiacas
PDF
PDF
VALUES-Brooke_Denton
PPTX
Your Resilience Your Response
PPTX
Evangelização - Presença Divina
PPTX
Leda digitalt utvecklingsarbete, varför, vad &amp; hur
PDF
LCache DrupalCon Dublin 2016
DOCX
07 construyendo una vida de agradecimiento a dios
PPTX
Circuitos eléctricos en serie
PPTX
The Marketer's Blind Spot
PDF
Best Practice co. Presentation for ERP odoo10
PPT
Hemorroides
PPT
Bloque 5 la revolución rusa y la urss
Tamaulipas, una entidad con vocación energética
[IUI 2017] Criteria Chains: A Novel Multi-Criteria Recommendation Approach
Geometria analitica
80,000lb Bristol Riggers Special Forklift For Sale Used
Module IV - MapReduce Programming - I
Write, Publish and Market Your Kindle Book in 4 Weeks
Gastrointestinales
Fibrilaciones cardiacas
VALUES-Brooke_Denton
Your Resilience Your Response
Evangelização - Presença Divina
Leda digitalt utvecklingsarbete, varför, vad &amp; hur
LCache DrupalCon Dublin 2016
07 construyendo una vida de agradecimiento a dios
Circuitos eléctricos en serie
The Marketer's Blind Spot
Best Practice co. Presentation for ERP odoo10
Hemorroides
Bloque 5 la revolución rusa y la urss
Ad

Similar to Module 01 - WebDriver Basics (20)

PPTX
Selenium topic 3 -Web Driver Basics
PPTX
Selenium web driver
PPTX
Selenium Web Driver Tutorial for Cross Browser Testing
PDF
Web driver selenium simplified
PDF
anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf
PPTX
An overview of selenium webdriver
PPTX
Selenium WebDriver
PPTX
Selenium Automation
PPTX
A Deep Dive into the W3C WebDriver Specification
PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
PDF
Selenium for Tester.pdf
PPTX
Selenium
PPTX
PPTX
Introduction to selenium web driver
PPTX
Selenium.pptx
PDF
Selenium Introduction by Sandeep Sharda
PPTX
Introduction to Selenium Web Driver
PPTX
Automation With Selenium
PDF
Selenium - Introduction
PPTX
Test automation using selenium
Selenium topic 3 -Web Driver Basics
Selenium web driver
Selenium Web Driver Tutorial for Cross Browser Testing
Web driver selenium simplified
anoverviewofseleniumwebdriver-160407055026 (pdf.io).pdf
An overview of selenium webdriver
Selenium WebDriver
Selenium Automation
A Deep Dive into the W3C WebDriver Specification
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium for Tester.pdf
Selenium
Introduction to selenium web driver
Selenium.pptx
Selenium Introduction by Sandeep Sharda
Introduction to Selenium Web Driver
Automation With Selenium
Selenium - Introduction
Test automation using selenium

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation theory and applications.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Cloud computing and distributed systems.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
sap open course for s4hana steps from ECC to s4
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
MIND Revenue Release Quarter 2 2025 Press Release

Module 01 - WebDriver Basics

  • 1. Naveen P.N Trainer Module 01 - WebDriver Basics NPN TrainingTraining is the essence of success and we are committed to it www.npntraining.com
  • 2. Course Topics ` WebDriver Basics Module - I Locators Module - II Exploring Selenium API - I Module - III Exploring Selenium API - II Module - IV Advance Locators Module - V Controlling Test Flow Module - VI Data Driven Testing Module - IX Module - X Page Object Model & Page Factory Module - XI Keyword Driven Framework Module - XII Testing HTML5 Web Application Advance Interactions of WebDriver Module - VII Understanding WebDriver events Module - VIII Selenium Grid Module - XIII Interview Preparation Module - XV Continuous Integration Module - XIV
  • 3. Attaching Selenium jars into project Working with FirefoxDriver Working with ChromeDriver Working with InternetExplorerDriver Exploring FirefoxBinary class Firefox profile Manager Overview of Selenium Topics for the Module` Attaching Selenium Documentation to eclipse Exploring Proxy class Difference between close() and quit() Working with HTMLUnitDriver Exploring FirefoxProfile and ProfilesIni class Understanding DesiredCapabilities class Maximizing and moving windows
  • 4. Overview of WebDriver WebDriver is an interface in Selenium API. www.npntraining.com
  • 5. Concreate Implementation of WebDriver interface www.npntraining.com
  • 6. Working with ChromeDriver Chrome Driver is maintained / supported by the Chromium project itself. WebDriver works with Chrome through the chromedriver binary (found on the chromium project’s download page). www.npntraining.com
  • 9. Working with HTMLUnitDriver This is currently the fastest and most lightweight implementation of WebDriver. HtmlUnitDriver works behind the scenes. HtmlUnit is a java based implementation of a WebBrowser without a GUI. www.npntraining.com
  • 10. Working with HTMLUnitDriver Contd… i. None of the popular browsers uses the JavaScript engine used by HtmlUnit (Rhino). If you test JavaScript using HtmlUnit the results may differ significantly from those browsers. ii. When we say “JavaScript” we actually mean “JavaScript and the DOM”. Although the DOM is defined by the W3C each browser has its own quirks and differences in their implementation of the DOM and in how JavaScript interacts with it. HtmlUnit has an impressively complete implementation of the DOM and has good support for using JavaScript, but it is no different from any other browser: it has its own quirks and differences from both the W3C standard and the DOM implementations of the major browsers, despite its ability to mimic other browsers. iii. With WebDriver, we had to make a choice; do we enable HtmlUnit’s JavaScript capabilities and run the risk of teams running into problems that only manifest themselves there, or do we leave JavaScript disabled, knowing that there are more and more sites that rely on JavaScript? We took the conservative approach, and by default have disabled support when we use HtmlUnit. With each release of both WebDriver and HtmlUnit, we reassess this decision: we hope to enable JavaScript by default on the HtmlUnit at some point. HtmlUnitDriver driver =new HtmlUnitDriver(true)
  • 11. Working with HTMLUnit Driver` www.npntraining.com
  • 12. Exploring Firefox Binary class www.npntraining.com
  • 13. Exploring Firefox Profiles A profile in Firefox is a collection of bookmarks, browser settings, extensions, and history; in short all your personal settings which is stored in separate location. www.npntraining.com
  • 15. Exploring Proxy class A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource available from a different server and the proxy server evaluates the request as a way to simplify and control its complexity. www.npntraining.com
  • 16. Exploring Proxy class Contd… ` www.npntraining.com
  • 18. Exploring DesiredCapabilities DesiredCapabilities is a predefined class which is used to add additional capabilities to your WebDriver instance www.npntraining.com
  • 19. Exploring DesiredCapabilities class Contd…` www.npntraining.com
  • 20. close() VS quit() ` www.npntraining.com
  • 21. Maximizing, Moving and Resizing windows` www.npntraining.com
  • 22. What is WebDriver ? What are the concreate implementation of WebDriver ? Name some of the abstract methods present in WebDriver interface ? What are the different methods present in WebDriver to locate elements ? What is the use of Firefox Profile ? What additional configuration need to be done to start internet explorer? What is special about HTMLUnitDriver ?
  • 23. ` Agenda for Next Class  Installing FireBug and FirePath  Inspecting elements using Firebug and Firepath  Different ways to locate web elements  Using the By locating mechanism  Understanding driver.findElement(By by)  Understanding List<WebElement> driver.findElements(By by)  Handling basic Authentication www.npntraining.com

Editor's Notes

  • #3: SD
  • #4: SD
  • #19: It gives facility to set the properties of browser. https://code.google.com/p/selenium/wiki/DesiredCapabilities
  • #23: Latency in trasferring data