How does Selenium WebDriver works internally ?
#selenium #java #testing #manual #automation #automationtesting
Selenium WebDriver acts as a bridge between automation scripts and the browser.
Selenium WebDriver communicate with the browser to perform actions, It uses the WebDriver protocol to send commands from your script to the browser and retrieve responses.
WebDriver protocol (W3C - World Wide Web Consortium) is a communication standard with set of rules and APIs.
Rules:
Client-Server architecture:
HTTP Methods:
Endpoints:
JSON Payloads:
Components of an API :
HTTP Methods : GET, POST,..ect
Endpoints (URLs):
Request Parameters
Response
Authentication & Authorization
HTTP request client (web browser or an app) communicates with a server, asking for a resource or performing an action. It contains:
HTTP response the server answers the client's request.