Sitemap
Praneshwark

Praneshwark

Python Selenium

1 min readJul 8, 2026

Python Selenium WebDriver and its Architecture:

WebDriver is a tool that allows us to control a browser using code. This actually gives instructions to the browser.

Architecture:

Python Selenium Script >> Selenium WebDriver >> Browser Driver >> Real Browser

Components:

1. Test script: This is our actual code.
2. Selenium WebDriver: This works like a middleman; it will understand the commands from the script.
3. Browser Driver: This will translate the commands to the browser.
4. Real Browser: It will take the final action.

Python Virtual Environments and its Significance:

It is an isolated Python environment where separate packages will get installed. Every project will be independent here. It ensures that change in one project does not affect other projects.

Get Praneshwark’s stories in your inbox

Join Medium for free to get updates from this writer.

Why It is Important:

  1. Avoid Version Conflicts: Different projects can use different versions of the same library. Like Project 1 is using Selenium3 and Project2 is using Selenium4.

2. Project Isolation: Each project remains clean and independent.

3. Easy dependency management: We can export and share dependencies.

4. Safe Experimentation: We can try new libraries without affecting system python.

5. Better for Automation and CI/CD: Tools like Jenkins can create fresh environments for each run.

Web Browser Developer Tools (F12) and its Significance:

We also call it DevTools.

These are browser tools that are used for multiple things.

IN automation, we generally use these to see the HTML structure.

Why do we use DevTools:

We use it to find the selenium elements. We can identify different elements and their properties, such as id, class, type, text, tag, etc.

--

--