Can someone please explain the Selenium Webdriver Architecture ?

0 votes
May 13 in Selenium by Keshav
111 views

1 answer to this question.

0 votes

Hey Keshav, there are four basic components of WebDriver Architecture:

  1. Selenium Language Bindings: Selenium developers have built language bindings/Selenium Client Libraries in order to support multiple languages. For instance, if you want to use the browser driver in java, use the java bindings. All the supported language bindings can be downloaded from the official website (https://www.seleniumhq.org/download/#client-drivers) of Selenium.

  2. JSON Wire Protocol: JSON (JavaScript Object Notation) is an open standard for exchanging data on web. It supports data structures like object and array. So, it is easy to write and read data from JSON. JSON Wire Protocol provides a transport mechanism to transfer data between a server and a client. JSON Wire Protocol serves as an industry standard for various REST web services.

  3. Browser Drivers: Selenium uses drivers, specific to each browser in order to establish a secure connection with the browser without revealing the internal logic of browser's functionality. The browser driver is also specific to the language used for automation such as Java, C#, etc. When we execute a test script using WebDriver, the following operations are performed internally:

    • HTTP request is generated and sent to the browser driver for each Selenium command.

    • The driver receives the HTTP request through HTTP server.

    • HTTP Server decides all the steps to perform instructions which are executed on browser.

    • Execution status is sent back to HTTP Server which is subsequently sent back to automation script.

  4. Real Browsers: Browsers supported by Selenium WebDriver:

    • Internet Explorer

    • Mozilla Firefox

    • Google Chrome

    • Safari

answered May 13 by Pratibha
• 3,680 points

Related Questions In Selenium

+1 vote
1 answer

Can someone explain the meaning of WebDriver wd = new ChromeDriver();?

WebDriver webdriver = new ChromeDriver(); The following simply ...READ MORE

answered Dec 14, 2018 in Selenium by Aniket
87 views
0 votes
1 answer

How can I download the *.jar file from http:// seleniumhq.org using selenium WebDriver?

For Selenium Standalone Server use this: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); and ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,230 points
703 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
1,163 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,150 points
1,255 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,150 points
1,012 views
0 votes
1 answer
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 8 in Selenium by Pratibha
• 3,680 points
253 views