Pages

What is Selenium ?

  • We will explain Selenium Webdriver in 2 ways:
  1. Easy Practical example
  2. Technically
Lets explain using first way by using Car driver Analogy:

In Car driving, we have 3 persons:
  1. Passenger: He will give commands to car driver like where to go,how to go,instructions etc.,.
  2. Car Driver: Driver will receive commands from passenger and then send those commands to car
  3. Car: It will receive commands from car driver and car will execute those commands like Start,stop,turn left turn right etc.,.
Here we can observe Car driver is acting like intermediate person(receiving and sending commands) between Passenger and Car.

Selenium Explanation
Selenium Explanation using Car Driver Analogy
Now we will see technically in high level,
  1. Engineer/Client: He will give commands to Browser driver(Selenium web driver) like Open url,Search key word etc.,.(giving commands using languages like Java,Ruby,Pthon etc.,.)
  2. Browser Driver: Selenium Web Driver will receive commands from Client and then send those commands to Browser (say chrome)
  3. Browser: It will receive commands from Selenium Web driver and browser will execute those commands like Click button,entered Text,element visible etc.,.
Selenium
Selenium Explanation
Above image will explain selenium technically in high level.

Selenium:

=> Simply, we can say, Selenium automates browser and its upto you how you use it entirely.
=> Primarily, it is used for automating Web applications and open source.

If we say technically, internally there is a series of process like below:

---> For each selenium command an HTTP request is created and driver process the commands using HTTP server then executes those commands and sent execution status to automation script using HTTP server.

Please comment below to feedback or ask questions.

No comments:

Post a Comment

Please comment below to feedback or ask questions.