DEV Community

KN M
KN M

Posted on

Selenium Architecture

              ## _SELENIUM ARCHITECTURE_
Enter fullscreen mode Exit fullscreen mode
  1. Selenium allows developers and testers to automate the testing of web applications across different browsers and platforms model that helps automate browser actions. Which is something called Selenium WebDriver, which acts like a bridge between your test scripts and the browser. When you write a test using a programming language like Python,Were using which is called a Selenium client library. This library translates your commands into a format that the browser can understand specifically, into HTTP requests that follow a protocol known as the WebDriver protocol.
  • Once your script sends a command, it goes to a browser specified driver like ChromeDriver for Chrome. This driver is essentially a small server that listens for those HTTP requests. When it receives one, it translates the command and tells the browser what to do ,whether it is input or clicking a button, entering text. The browser then performs the action and sends a response back through the driver to your script, the we can check the logs for the success or failure process.

  • If you we want to run tests on multiple machines or browsers at the same time, So we use the Selenium Grid here. It has a central hub that distributes your tests to different nodes, which are basically machines configured to run those tests. This helps us to run multiple tests at the same time.

  • So to write our test, Selenium translates it into browser commands, the browser executes those commands, and then sends the results back. It is like having a remote control for your browser, with WebDriver acting as the translator between your instructions and the browser actions.

Top comments (0)