InterviewSolution
| 1. |
How does a Selenium WebDriver interact with the browser? |
|
Answer» On a high level, the Selenium webdriver communicates with the browser and does not transform commands into Javascript. Our Java or Python code will be TRANSMITTED as an api get and post request in the JSON wire PROTOCOL. The browser webdriver interacts with the real browser as an HTTP Request, as mentioned in the previous answer. To receive HTTP requests, each Browser Driver utilizes an HTTP server. When the URL reaches the Browser Driver, it will send the request via HTTP to the real browser. The commands in your Selenium script will be executed on the browser after this is completed.
|
|