What is Selenium ?
- We will explain Selenium Webdriver in 2 ways:
- Easy Practical example
- Technically
Lets explain using first way by using Car driver Analogy:
In Car driving, we have 3 persons:
- Passenger: He will give commands to car driver like where to go,how to go,instructions etc.,.
- Car Driver: Driver will receive commands from passenger and then send those commands to car
- 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 using Car Driver Analogy |
Now we will see technically in high level,
- 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.,.)
- Browser Driver: Selenium Web Driver will receive commands from Client and then send those commands to Browser (say chrome)
- Browser: It will receive commands from Selenium Web driver and browser will execute those commands like Click button,entered Text,element visible etc.,.
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.