🌐
Medium
medium.com › @sayalidhoot07 › creating-a-selenium-pytest-framework-from-scratch-6fadd32f9574
Creating a Selenium Pytest Framework from Scratch | by Sayali Dhoot | Medium
November 1, 2023 - Creating a Selenium Pytest Framework from Scratch Introduction: This blog will explain how to build selenium-pytest framework step-by-step. By the end of this tutorial, you’ll have a structured and …
🌐
Reddit
reddit.com › r/qualityassurance › python selenium framework suggestions (pytest)
r/QualityAssurance on Reddit: python selenium framework suggestions (pytest)
April 10, 2024 -

just some basic questions for the ones with expertise on this (apologies if i miss on something)

  1. Can we run UI and API tests together in a single framework like pytest?

  2. I have basic knowledge on python. what would be the best approach to start learning framework.

  3. Most job requires automation knowledge, my contract is ending and most jobs want automation. what would be the best strategy to put some time after work in learning automation and get into something or lets say atleast to crack interviews. i am very strong on manual.

** i am working manual for 4 years and want to advance!!

Top answer
1 of 3
6
I extensively use robot framework and python everyday, currently for APIs using requests library for python, for actual api calls etc. Tests are in robot and is incredibly easy to understand. Robot also has great community support and documentation. I’ve used robot a lot for UI automation too. Great libraries out there to use with robot for this are selenium and playwright. Start with selenium as I think more people use that. Robot gives you inbuilt reporting too in html so no worries there. You’d definitely need to learn some basic python when it comes to API, for UI, with robot framework you won’t need to learn anything has robot framework is a text based language as well. Once you deep dive into docs and how to use you’ll how easy it is, especially to start things up. Good luck !
2 of 3
2
Selenium isn't technically an automation framework, it just gets lumped in with them. It's actually just a library that let's you interact with the browser and control it. I only say that to explain that you can't use it to it to make API calls or test them. But Python and Pytest can test APIs. So yes you could have them in a singular framework if you wanted. I've done it in the past with Java, TestNG and Selenium. But for us at least, it wasn't a great idea. The framework was huge, slow, clunky and flaky. We eventually separated then out into a couple different projects. But your mileage may vary. 2. I would learn more python first. Writing a framework isn't easy and if you don't really understand the language and good design principals, you're probably going to end up like we did with a terrible framework that just makes things harder. Also, if you're just getting into automation, jobs aren't going to expect you to write advanced frameworks from scratch. They'll most likely just need you to add tests to their existing projects. 3. Just start automating something. I normally suggest something at your current job though if you're leaving soon this maybe isn't the right option for you. There are a ton of practice site ss out there you can use. I would use these to get the basics down but when you're ready you'll want to automate a real site. Just pick your favorite one and have at it.
Discussions

Implementing Automation for Functional Testing from scratch - Selenium, Python, PyTest - Stack Overflow
I am currently a manual tester for a very large and complex application (there is no automation testing at all). Currently I am solo working on automating everything with selenium. It is my initiat... More on stackoverflow.com
🌐 stackoverflow.com
Completed My First Selenium Automation Project in Python! Need Suggestions & Referral Guidance
Use github (or something similar) as a repository to store your code there. Maybe also try to get familiar with git actions. More on reddit.com
🌐 r/QualityAssurance
2
3
November 15, 2025
Selenium framework from scratch?

People are throwing "framework" term to losely. Look, everything that u can find online in terms of ready "framework" - is so easily achivable with few weeks of coding. What u should focus on is building your own "framework", with its config and property files, create maintable page object model - the one that makes sense for your project. Start from corenfunctionality move onto broader specs. In a mean while look to intergate your test with some CI/CD tools (jenkins, hudson, bamboo... whatever). implement reporting into your test results (u mentioned u r familiar wiith allure). Keep your code in some kind of source control (git, subversion, tfs...). Implement jdbc or odbc drivers for db verification - and of u go. There is your framework.

Mind you, this is a lot of work that never ends due to steady changes in business requests and thus changes in your test suite as well.

Wishing u all the best in your future endeavours!

More on reddit.com
🌐 r/QualityAssurance
10
18
June 4, 2019
What are some of the best automation frameworks to learn in python?
What is your goal? Just to learn any type of test automation? To do a particular type of testing? If the former, then Selenium or Playwright would be a good choice. I'd recommend Playwright over Selenium these days. More on reddit.com
🌐 r/softwaretesting
10
10
January 22, 2024
🌐
GeeksforGeeks
geeksforgeeks.org › python › selenium-python-tutorial
Selenium Python Tutorial - GeeksforGeeks
Dive into Selenium with Python and learn how to install it, write your first script and interact with web elements. ... Web elements don’t always load instantly — here’s how Selenium waits make scripts more reliable.
Published   1 month ago
🌐
Medium
tech-logger.medium.com › creating-python-selenium-framework-from-scratch-413d239e7ce
Creating Python Selenium Framework from scratch | by Kumar Shishir | Medium
April 29, 2023 - Creating Python Selenium Framework from scratch In this article I am going to create Python Selenium Framework from scratch. What are we going to cover in this article: 1. Setting up IDE 2. Cloning …
🌐
Udemy
udemy.com › development
Selenium Webdriver with PYTHON from Scratch + Frameworks
January 18, 2026 - At the end of this course, You will get complete knowledge on Python Automation using Selenium WebDriver · You will be able to implement Python Test Automation Frameworks from Scratch with all latest Technlogies
Rating: 4.6 ​ - ​ 25.1K votes
🌐
Real Python
realpython.com › modern-web-automation-with-python-and-selenium
Modern Web Automation With Python and Selenium – Real Python
April 30, 2025 - Get Your Code: Click here to download the free sample code that shows you how to use Selenium in Python for modern web automation. Once you’re in the same folder as the the requirements.txt file, you can install all dependencies listed there: ... If you install selenium directly, then pip will fetch the latest stable version of Selenium from PyPI.
🌐
H2K Infosys
h2kinfosys.com › blog › building a selenium framework from scratch: step-by-step guide
Building a Selenium Framework from Scratch: Step-by-Step Guide
July 2, 2025 - This provides a step-by-step guide to building a Selenium framework from scratch using Java, TestNG, Maven, and other supporting tools.
Find elsewhere
🌐
GitHub
github.com › adrianmaciuc › python-selenium-framework-example
GitHub - adrianmaciuc/python-selenium-framework-example: Creating a framework from scratch and creating end to end tests for a e-commerce website · GitHub
🚀 To get started with this framework, simply follow these steps: 1️⃣ Clone the project from the Git repository. 2️⃣ Install the required dependencies using pip install -r requirements.txt.
Starred by 8 users
Forked by 3 users
Languages   Python
🌐
O'Reilly Media
oreilly.com › videos › selenium-python-automation › 9781800567733
Selenium Python Automation Testing from Scratch and Frameworks [Video]
Develop automation tests for web applications using the Selenium library. Build and implement scalable Python testing frameworks from scratch.
🌐
Logigear
logigear.com › blogs › selenium › Building-a-Selenium-Framework-from-A-to-Z
Building a Selenium Framework from A to Z
This blog post is divided into 3 parts. In Part 1, we’ll focus on the high-level architecture of the Selenium framework. Part 2 will guide you through the steps to build the core components of the framework. Finally, Part 3 will discuss the utilities we can add to enrich our Selenium framework and increase productivity.
🌐
DEV Community
dev.to › testwithtorin › hands-on-selenium-with-python-from-basics-to-framework-building-6kd
Hands-On Selenium with Python: From Basics to Framework Building - DEV Community
April 9, 2025 - This guide is a comprehensive introduction to Selenium using Python which can help you begin with your first automation script. Selenium is an open-source automation framework that helps automate web applications across different browsers and platforms.
🌐
Stack Overflow
stackoverflow.com › questions › 75958768 › implementing-automation-for-functional-testing-from-scratch-selenium-python
Implementing Automation for Functional Testing from scratch - Selenium, Python, PyTest - Stack Overflow
644 Can a website detect when you are using Selenium with chromedriver? 221 How to suppress py.test internal deprecation warnings · 1 Python Selenium run multiple test classes in one selenium webdriver using with pytest
🌐
BrowserStack
browserstack.com › home › guide › selenium python tutorial (with example)
Selenium Python Tutorial (with Example) | BrowserStack
December 23, 2025 - unittest is a built-in Python testing framework that provides a structured approach to writing and running tests, including test case management, fixtures, and test discovery. Integrating Selenium with unittest allows for organized test cases, setup and teardown methods, and detailed test reports, making it easier to manage and maintain automated tests. ... import unittest from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class PythonOrgSearchTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.driver = webdrive
🌐
YouTube
youtube.com › playlist
Selenium Webdriver with PYTHON from Scratch + Frameworks - YouTube
python Basic, plus pytest framework design and implementation explained easiest way. so this course made me so confident to work with pytest framework with p...
🌐
Coursera
coursera.org › browse › computer science › software development
Selenium Python Automation Testing and Frameworks | Coursera
Starting with basic Python concepts like data types and functions, you will gradually move on to advanced automation techniques such as handling dynamic elements, working with multiple browsers, and synchronizing tests. This course is designed to teach you the fundamentals of automation and testing with Python and Selenium, covering everything from setting up your environment to creating robust frameworks.
Rating: 4.6 ​ - ​ 24 votes
🌐
Quora
quora.com › What-is-the-best-way-to-learn-how-to-use-Selenium-with-Python-to-test-web-applications
What is the best way to learn how to use Selenium with Python to test web applications? - Quora
When you are comfortable enough with this then you can try creating framework using any of the language you are fimiliar with, this will add an advantage yo your learning. Below are the few links I feel might be helpful for you( Though these might not have selenium with Python)
🌐
Sauce Labs
saucelabs.com › home › blog › using selenium with python for automated testing
Selenium With Python Tutorial & Examples | Sauce Labs
August 24, 2024 - Sauce AI for Test Authoring: Move from intent to execution in minutes. ... In this article, you'll learn how to use Selenium with Python for automated testing. You will run a variety of tests on a sample website to get a fundamental understanding of automated testing with these tools. ... Selenium is a popular open source framework for automated testing of web applications across multiple browsers, operating systems, and devices.
🌐
Pcloudy
pcloudy.com › home › best selenium python frameworks for test automation
Best Selenium Python Frameworks for Test Automation | pCloudy
June 21, 2023 - Lettuce is a Behavior Driven Development Testing Framework based on Cucumber and Python. This Python Selenium framework was designed to make testing simple and interesting to its users. It is an open-source framework and is usually hosted on GitHub. It uses Gherkin language to create tests, test scenarios, and feature files using user-friendly keywords.
🌐
Quora
quora.com › How-do-I-design-a-test-automation-framework-from-scratch
How to design a test automation framework from scratch - Quora
Answer: Start from the basics - 1. Identify, understand skills of the team or time it will take to familieris them with new technology . 2. Understand project requirements and language application is developed in so accordingly you can use language ...