1. Describe the Python Selenium Architecture in detail#
It is an open standard that provides a transport mechanism for transferring data between client and server on the web.
It is an automation framework which allows automating users actions with a web browser.
It communicates with web browser through a set of open-source API’s
Implemented on a web browser
All major web browsers support it including Internet Explorer.
All OS supports web driver
Selenium WebDriver Architecture is made up of four major components:
Selenium Client library: Selenium provides support to multiple libraries such as Ruby, Python, Java, etc as language bindings
JSON wire protocol over HTTP: It is an open standard that provides a transport mechanism for transferring data between client and server on the web. It uses the Layer-5 of OSI reference model.
Browser Drivers: Selenium browser drivers are native to each browser, interacting with the browser by establishing a secure connection using HTTP protocol. Selenium supports different browser drivers such as ChromeDriver, GeckoDriver, Microsoft Edge WebDriver, SafariDriver, and InternetExplorerDriver.
Browsers: Selenium provides support for multiple browsers like Chrome, Firefox, Safari, Internet Explorer etc.
2. What is the significance of Python Virtual Environment#
A virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated Python virtual environments for them. This is one of the most important tools that most Python developers use.
We use a module named virtualenv which is a tool to create isolated Python environments. virtualenv creates a folder that contains all the necessary executables to use the packages that a Python project would need.
Top comments (0)