How Selenium Works?

How Selenium Works?

What is Selenium?

Selenium is a free, open-source automated testing framework that checks web applications on various browsers and platforms. You can use different programming languages, such as Java, C#, Python, etc., to make Selenium Test Scripts. The testing carried out with the Selenium tool is commonly known as Selenium Testing.

how Selenium works?

Selenium operates using the client-server design, a software architecture model comprising a client system and a server system. These two components communicate either through a computer network or on the same computer. To delve deeper into the Selenium architecture, let's explore further details.

Selenium Architecture

in the picture above, the initial element is the Selenium Client Library, functioning as a client. You have the flexibility to choose a programming language that suits you to write your automation script, and Selenium takes care of the remaining tasks. Once you write the script in your preferred language, Java, C#, Python, Ruby, or Javascript,then the first step involves sending the script to the Json Wire Protocol through an API.


Json Wire Protocol:

JSON Wire Protocol is a communication protocol used by Selenium WebDriver to interact with web browsers. It facilitated the communication between the client (where your Selenium script is running) and the browser driver (responsible for controlling the web browser).


And now third element in the picture is Browser Driver. Each browser driver has an HTTP server that accepts requests from clients sent by JWP.

Browser Driver is used to interact with the real browser and deliver automation script instructions to the real browser to be turned into an action.


The last point is the Real Browser.

The best feature of Selenium WebDriver is its compatibility with major web browsers such as Google Chrome, Mozilla Firefox, Internet Explorer, and Safari. Each browser has its dedicated WebDriver for running automation scripts.

Such as Chrome:chrome drivers, Firefox:gecko drivers, Safari:safari drivers, Opera:opera drivers, Edge:edge drivers.



要查看或添加评论,请登录

Mohamed Ezzo ????的更多文章

  • Umbrella Testing

    Umbrella Testing

    ?? ??? ??????? ???? ?????? ?????? ?????? ? ???? ????? ?????? ????? ????? ???????? 1.Functional testing ???????? ???????…

    2 条评论
  • The OSI model and cyber attack examples

    The OSI model and cyber attack examples

    Imagine a building with seven doors providing entry. If all seven doors are locked, the building can be considered…

    2 条评论
  • Ransomware-Trojan Attack

    Ransomware-Trojan Attack

    I will talk about ransomware attacks using Trojan horses and how to protect against them and avoid them. ?????? ??…

    2 条评论

社区洞察

其他会员也浏览了