DEV Community

Kruthika
Kruthika

Posted on

Python Selenium Architecture and Selenium Virtual environment significance

*Python Selenium Architecture has below components *

  • Client Libraries
  • Json Wire Protocal
  • Browser Driver
  • Real Browser

Client Libraries are the map to work with selenium directories, which will enable to work / communicate with selenium.
Client libraries provides necessary things for selenium to perform any action which then selenium will communicate with Json wire protocol.

Json Wire Protocol it convert into light weight data for communicating with browser driver.
Json wire protocol allows all respective drivers to communicate with their browser to perform an action.

Browser Driver acts as a bridge between libraries and browsers, every browsers has their own drivers which can be downloaded from web, eg., chrome browser has chrome driver, firefox browser has geckodriver and so on..
Browser driver communicate with real browsers.

Real Browsers - selenium supports different browsers like chrome, firefox, microsoft edge, safari, etc.. and supports on different operating systems like Mac, windows, linux..

and finally selenium API, which supports software to software interactions.

Selenium Virtual Environment Significance

  • Selenium virtual environment helps to run the program without disturbing the existing / other programs or project in the same system.

  • It is sandboxing different modules of python to test them.

  • It is self contained isolated directory which contains python and its various modules.

  • It provide self isolated environment for testing.

  • It give folder like structure for your unique projects.

We can install this virtual environment via terminal / cmd prompt by giving their installation commands (or) by downloading tool called Pycharm

Top comments (0)