🌐
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.
🌐
BrowserStack
browserstack.com › home › guide › top 15 python testing frameworks in 2026
Top 15 Python Testing Frameworks in 2026 | BrowserStack
June 10, 2026 - When to Choose / When Not to Choose Behave Framework · SeleniumBase is a tool for automating tasks in web browsers. It makes it easier to create website tests without needing to deal with complicated coding.
Discussions

python selenium framework suggestions (pytest)
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 ! More on reddit.com
🌐 r/QualityAssurance
9
3
April 10, 2024
What am I missing? (Pytest & Selenium)
Selenium can be invoked within pytest to test a custom website's functionality. You can write function/integration tests that actually access the page you wrote and interact with it, then verify the result is what you expected. Whether that's a good idea is a topic of debate. I can say from experience that such tests tend to be extremely slow for automated tests, and it takes a lot of dedication to keep them from breaking as you make changes. The only way it could be used to test your code that uses Selenium is to invoke your code and then either examine the response or perform a second request to assert it created, updated, or deleted the data you expected. Unless you have access to a staging/testing copy of the system it accesses, though, that would be a bad idea. You don't want to create dummy test data in production. You also face the problem that your code depends heavily on the website. This means that as it changes, your scripts will break. A test suite can help detect those cases when those changes happen, but both your code and its tests are at the mercy of the maintainers. A more common approach would be to unit test the parts of your system that don't absolutely require external dependencies. This would include things like processing you do on the response of a web request before sending a second one. Writing these kinds of tests requires you to organize your code such that this logic lives in functions and methods that don't access the website directly; they would take any data from external sources as a parameter instead. (You could use mocks to simulate making the web requests and obtaining the data, but that makes your tests more brittle and harder to maintain and provides no advantages compared to separating the logic out. You'll still see people recommending it, though.) But given the description of your use case, though, you may not have any logic like that. More on reddit.com
🌐 r/learnpython
10
14
April 20, 2020
People also ask

What makes Python a popular choice for test automation?
Python’s versatility and strong support for test automation frameworks make it an excellent choice. It’s compatible with tools like Selenium for automated testing, and it provides a variety of frameworks for different testing needs.
🌐
testmuai.com
testmuai.com › testmu ai › blog › 7 top python automation frameworks [2026]
7 Top Python Automation Frameworks [2026]
What are the advantages of using Pytest for automation?
Pytest is highly scalable, requires minimal boilerplate code, and supports parameterization and parallel test execution. It’s particularly useful for complex tests and Test Driven Development (TDD).
🌐
testmuai.com
testmuai.com › testmu ai › blog › 7 top python automation frameworks [2026]
7 Top Python Automation Frameworks [2026]
Is Robot Framework suitable for beginners?
Yes, Robot Framework is beginner-friendly with its simple, human-readable syntax. It’s also platform-independent and integrates well with Selenium for effective test automation.
🌐
testmuai.com
testmuai.com › testmu ai › blog › 7 top python automation frameworks [2026]
7 Top Python Automation Frameworks [2026]
🌐
Sauce Labs
saucelabs.com › resources › blog › selenium-with-python-for-automated-testing
Using Selenium with Python for Automated Testing
August 24, 2024 - Before Selenium, testing a web application was a time-consuming process. You had to manually perform different scenarios on various browsers to identify issues in the user experience. The Selenium project offers built-in support for 5 languages: Java, JavaScript, Python, C#, and Ruby.
🌐
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 - PyTest is a Python testing framework that can be used to write your automation test scripts. It helps in efficient test execution and reporting. Let’s have a quick glance of how you can use it for the same test that we wrote above.
🌐
BrowserStack
browserstack.com › home › guide › selenium python tutorial (with example)
Selenium Python Tutorial (with Example) | BrowserStack
May 18, 2026 - 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.
🌐
TestingBot
testingbot.com › docs › web automation › selenium › python
Python testing framework with Selenium
July 20, 2026 - SeleniumBase is a Python package that simplifies Selenium testing. ... Robot Framework is a generic automation framework for acceptance testing.
🌐
Appsierra
appsierra.com › blog › top-selenium-python-frameworks
Top Selenium Python Frameworks For Python Testing
PyTest is one of the open-source selenium with Python frameworks that is essentially used for unit testing. This appropriate Python testing Framework in 2020 is scalable as it is very beneficial in writing simple automation tests and complex ...
Find elsewhere
🌐
GitHub
github.com › startrug › selenium-python-framework
GitHub - startrug/selenium-python-framework: Selenium WebDriver with Python · GitHub
Selenium WebDriver with Python. Contribute to startrug/selenium-python-framework development by creating an account on GitHub.
Author: startrug
🌐
Testmuai
testmuai.com › testmu ai › blog › 7 top python automation frameworks [2026]
7 Top Python Automation Frameworks [2026]
September 4, 2026 - ... Installation of Behave requires Python above 2.7.14. Prior experience with any of the BDD tools can be handy to get started with the Behave framework. Here are the advantages of using the Behave framework for test automation:
🌐
GitHub
github.com › atinfo › awesome-test-automation › blob › master › python-test-automation.md
awesome-test-automation/python-test-automation.md at master · atinfo/awesome-test-automation
Mops - Mops is a Python wrapper that offers a user-friendly, unified API for Selenium, Appium, and Playwright, simplifying test automation across web applications. It reduces Selenium wait times, provides visual comparison support across all ...
Author: atinfo
🌐
GeeksforGeeks
geeksforgeeks.org › python › selenium-python-tutorial
Selenium Python Tutorial - GeeksforGeeks
Selenium Grid: Run tests on multiple browsers and systems simultaneously for cross-browser testing. Supports Multiple Languages: Works with Python, Java, C#, Ruby and JavaScript. Integrates with Frameworks: Compatible with pytest, JUnit, and ...
Published: March 9, 2026
🌐
Pcloudy
pcloudy.com › home › guide to set up modern web test automation framework with selenium and python
Guide to Set Up Modern Web Test Automation Framework with Selenium and Python
February 15, 2024 - Such use cases can be achieved with the use of Selenium with any robust programming language, in this post we will be using Selenium with Python. Selenium WebDriver is a web framework that permits automation of web based applications on various ...
🌐
TechBeamers
techbeamers.com › selenium-python-test-suite-unittest
Python Selenium Test Suite with Unittest - TechBeamers
November 30, 2025 - This tutorial provides you with all the steps you need to build a Selenium Python test suite using Python’s unit test framework. Simultaneously…
🌐
Jignect
jignect.tech › selenium-python-unittest-trio-for-flawless-test-automation
Selenium Python Unittest for Flawless Test Automation
December 22, 2025 - This blog will cover Python basics, its suitability for Selenium automation, the significance of the unittest framework, and the setup process for writing and running Python scripts in PyCharm for automation testing.
🌐
Sling Academy
slingacademy.com › article › building-a-comprehensive-testing-framework-with-selenium-in-python
Building a Comprehensive Testing Framework with Selenium in Python - Sling Academy
With the Page Object Model set, you can now write concise test cases that use these page methods. Pytest, a popular Python testing framework, fits well with Selenium:
🌐
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.
🌐
Testmuai
testmuai.com › home › support › how to perform unit testing in python on lambdatest selenium grid
Python Unittest with Selenium:Tutorial to run your first test on TestMu AI | TestMu AI (Formerly LambdaTest)
September 2, 2026 - In this topic, you will learn how to configure and run your automation testing scripts on TestMu AI Selenium cloud platform using Python framework UnitTest. ... Set up an environment for testing your hosted web pages using UnitTest framework with Selenium.
🌐
TestGrid
testgrid.io › guide › top python testing frameworks in 2026
Top Python Testing Frameworks in 2026 | TestGrid
January 30, 2026 - Automatically detect feature files, simplifying test structure without extra configuration · Enable readable scenario definitions using Gherkin with formats like Feature, Scenario, Given/When/Then · Support integration with web frameworks like Flask and Django, and third-party tools such as Selenium and Allure reports · Requires Python skills, as users must write step definitions and understand the language
🌐
TestGrid
testgrid.io › selenium › selenium python tutorial for beginners (step-by-step using webdriver)
Selenium Python Tutorial (WebDriver Guide & Examples)
March 9, 2026 - PyTest is a Python testing framework often used along with Selenium Python to write automation test scripts. It helps in efficient test execution and reporting. Let’s have a glance at how you can use it for the same test that we wrote above.
🌐
GeeksforGeeks
geeksforgeeks.org › python › writing-tests-using-selenium-python
Writing Tests using Selenium Python - GeeksforGeeks
July 12, 2025 - The selenium package itself doesn’t provide a testing tool/framework. One can write test cases using Python’s unittest module. The other options for a tool/framework are py.test and nose.