What is Selenium WebDriver?
Selenium WebDriver Architecture
Before starting the automation with Selenium Web Driver, lets understand the architecture of Web Driver.
Language binding sends command to the common driver API, other side the driver will be listening to those commands and will execute the same in browser using remote Web Driver and will return the response via API to the respective binding.
In the background whatever the commands are issued in the code will be interpreted into Web service methods (JSON Wired Protocol) and the Remote Driver will receive the HTTP request (commands) and execute them in the browser then send the response back.
How WebDriver communicates with HTML components?
For communicating with Web Page components like : “Textboxes”, Buttons”,“Links” etc WebDriver use following inbuilt methods mentioned in the below table. However to find the objects to interact with it uses method findElement().