- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is WebDriver in Selenium?
The webdriver in Selenium is an automation framework used to carry out testing in the web in multiple browsers. It can support more than one operating system as well. It comes with no cost.
Selenium can used with languages like −
Java
Python
C#
Ruby
.Net
PHP
Selenium webdriver can be used HTMLUnit browsers which are headless in nature. Thus the execution can happen in invisible mode without a GUI. The headless execution is preferred as it consumes less resources.
Selenium can be used with browsers like −
Chrome
Firefox
Safari
IE
Headless mode
Edge
The structure of webdriver is illustrated below −
As a test script is executed, a HTTP request is generated for every command in Selenium and passed to the browser driver. The browser driver takes the help of a HTTP server for obtaining the HTTP request.
The HTTP server decides the steps required for implementing the Selenium commands. After the commands are run on the browser, the status is sent to the HTTP Server which in return sends it to the automation test.
Selenium Webdriver is created such that it has an uncomplicated and precise interface for programming. It fixes some of the limitations of the Selenium RC API. It is a closely packed object oriented API compared to Selenium1.0. It is faster and plugs in the shortcomings of Selenium 1.x.
Webdriver is an interface and the classes implementing its methods are −
ChromeDriver
FirefoxDriver.
InternetExplorerDriver
SafariDriver
PhantomJSDriver
RemoteWebDriver
HtmlUnitDriver
EventFiringWebDriver
- Related Articles
- What can selenium WebDriver do?
- What is the difference between Selenium RC and Webdriver?
- What is the difference between selenium WebDriver and TestNG?
- Selenium RC vs Selenium webdriver.
- Selenium WebDriver StaleElementReferenceException.
- What are the drawbacks of Selenium WebDriver?
- Is navigate method available in Selenium Webdriver with Python?
- What is Stale Element Reference Exception in Selenium Webdriver & How To Fix It?
- Maximize WebDriver (Selenium 2) in Python.
- WebDriver executeAsyncScript vs executeScript in Selenium
- sendKeys() not working in Selenium Webdriver
- Test if element is present using Selenium WebDriver?
- What is the difference between Selenium's Remote Control vs WebDriver?
- Selenium WebDriver- Revisiting Important Features
- Selenium Webdriver submit() vs click().
