Testing With Selenium WebDriver (75 Blogs) Become a Certified Professional
AWS Global Infrastructure

Software Testing

Topics Covered
  • Testing With Selenium WebDriver (65 Blogs)
SEE MORE

All You Need to Know About Selenium WebDriver Architecture

Last updated on Jun 26,2024 30.4K Views

A tech enthusiast in Java, Image Processing, Cloud Computing, Hadoop. A tech enthusiast in Java, Image Processing, Cloud Computing, Hadoop.
8 / 16 Blog from Selenium IDE Fundamentals

Testing the system against all odds is a challenging task and you need a tool that can help you in this process. One such predominantly used tool by Automation Testers is Selenium. If you are a beginner and wish to know how Selenium functions internally, then you have landed at the perfect place. In this article, I will give you brief insights into Selenium WebDriver Architecture. You can refer to the additional details with the Selenium Training.

Below are the topics covered in this article:

You may also go through this recording where you can understand the topics in a detailed manner with examples.

Selenium WebDriver Architecture | Understanding Selenium Architecture | Edureka

This Edureka “Selenium Architecture” video will give you an introduction to Selenium Architecture and Webdriver.

What is Selenium?

Selenium - Selenium WebDriver Architecture - EdurekaSelenium is an open source portable framework used to automate testing of web applications. It is highly flexible when it comes to testing functional and regression test cases. Selenium test scripts can be written in different programming languages like Java, Python, C# and many more. These test scripts can run across various browsers like Chrome, Safari, Firefox, Opera and also provides support across various platforms like Windows, Mac OS, Linux, Solaris. Selenium also supports cross browsing where the test cases run across various platforms simultaneously. It also helps in creating robust, browser-based regression automation suites and perform tests.

I hope you understood the fundamentals of Selenium. Now let’s move further and understand various tools that are available in the Selenium Suite.

Selenium Suite of Tools

Selenium is mainly comprised of a suite of tools, which include:

  • Selenium IDE
  • Selenium RC
  • Selenium WebDriver
  • Selenium Grid

Selenium Suite - Selenium WebDriver Architecture - Edureka

Let’s understand the functionalities of each of these tools in more detail.

Selenium IDE

IDE (Integrated Development Environment) is a Firefox plugin. It is one of the simplest frameworks in the Selenium Suite. It allows us to record and playback the scripts. If you wish to create scripts using Selenium IDE, you need to use Selenium RC or Selenium WebDriver to write more advanced and robust test cases.

Next, let’s see what is Selenium RC.

Selenium RC

Selenium RC, also known as Selenium 1, was the main Selenium project for a long time before the WebDriver merge brought up Selenium 2. It mainly relies on JavaScript for automation. It supports Ruby, PHP, Python, Perl and C#, Java, Javascript. It supports almost every browser out there.

Note: Selenium RC is officially deprecated.

Selenium WebDriver

Selenium WebDriver is a browser automation framework that accepts commands and sends them to a browser. It is implemented through a browser-specific driver. It directly communicates with the browser and controls it. Selenium WebDriver supports various programming languages like – Java, C#, PHP, Python, Perl, Ruby. and Javascript

Selenium WebDriver supports the following:

  1. Operation System Support – Windows, Mac OS, Linux, Solaris
  2. Browser Support – Mozilla Firefox, Internet Explorer, Google Chrome 12.0.712.0 and above, Safari, Opera 11.5 and above, Android, iOS, HtmlUnit 2.9 and above.

Selenium Grid

Selenium Grid is a tool which is used together with Selenium RC. It is used to run tests on different machines against different browsers in parallel. Which implies – running multiple tests at the same time against different machines running different browsers and operating systems.

So this was all about the Selenium Suite of Tools. Let’s dive deeper into this article and learn the functionalities and various components of Selenium WebDriver Architecture.

Selenium WebDriver Architecture

In order to understand Selenium WebDriver Architecture, we should first know what is a WebDriver API. Selenium Webdriver API helps in communication between languages and browsers. Each and every browser has different logic of performing actions on the browser. Below image depicts various components of Selenium WebDriver Architecture.

Selenium Architecture - Selenium WebDriver Architecture - EdurekaIt comprises four main components which are:

  1. Selenium Client Library
  2. JSON WIRE PROTOCOL Over HTTP Client
  3. Browser Drivers
  4. Browsers

Let’s understand each of these components in depth.

1. Selenium Client Libraries/Language Bindings

Selenium supports multiple libraries such as Java, Ruby, Python, etc. Selenium Developers have developed language bindings to allow Selenium to support multiple languages. If you wish to know more about libraries, kindly refer to the official site for Selenium libraries.

2. JSON WIRE PROTOCOL Over HTTP Client

JSON stands for JavaScript Object Notation. It is used to transfer data between a server and a client on the web. JSON Wire Protocol is a REST API that transfers the information between HTTP server. Each BrowserDriver (such as FirefoxDriver, ChromeDriver, etc.) has its own HTTP server.

3. Browser Drivers

Each browser contains a separate browser driver. Browser drivers communicate with the respective browser without revealing the internal logic of the browser’s functionality. When a browser driver has received any command then that command will be executed on the respective browser and the response will go back in the form of an HTTP response.

4. Browsers

Selenium supports multiple browsers such as Firefox, Chrome, IE, Safari, etc.

Now let’s move further and know how exactly Selenium functions internally with the help of the below example.

Demo

In real time, you write a code in your UI (say Eclipse IDE) using any one of the supported Selenium client libraries (say Java).

Example:

Upcoming Batches For Selenium Certification Training Course
Course NameDateDetails
Selenium Certification Training Course

Class Starts on 14th September,2024

14th September

SAT&SUN (Weekend Batch)
View Details
Selenium Certification Training Course

Class Starts on 23rd September,2024

23rd September

MON-FRI (Weekday Batch)
View Details
Comments
0 Comments

Join the discussion

Browse Categories

webinar REGISTER FOR FREE WEBINAR
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

All You Need to Know About Selenium WebDriver Architecture

edureka.co