Selenium webdriver architecture is based on client server model; where our code acts as client and asks browser drivers to work on the locators and perform the required action; Then the Browser driver directly interacts with the original browsers(the ones which we use in our day to day life); And hence we see the actions getting performed on our screens. | Avni

editor-img
Avni
Aug 4, 2022

Selenium webdriver architecture is based on client server model; where our code acts as client and asks browser drivers to work on the locators and perform the required action; Then the Browser driver directly interacts with the original browsers(the ones which we use in our day to day life); And hence we see the actions getting performed on our screens.

media

And if browser wants to connect back for any errors, it also sends back the response in json format. This complete part is described in the following threads:

After you trigger the Test, complete Selenium code (Client) which we have written will be converted to Json format. - Json is nothing but an open standard file format data, which is used in programming (human readable text) and the programmer considers it as key-value pairs

Generated Json is sent to Browser Driver (Server) through http Protocol. - HTTP is a protocol for fetching resources such as HTML documents. It is the foundation of any data exchange on web.

Browser drivers communicate with its respective browser and executes the commands by interpreting Json which It received on the browser. Browser Driver receives responses back from the browser and it sends Json response back to Client. This is how selenim web driver works and keeps our scripts running. 😀


Checkout related posts on: