A clean, scalable, and maintainable test automation framework using Selenium WebDriver, Python, and Pytest — designed to ensure reliable end-to-end testing for modern web applications.
- 🔧 Built with Selenium WebDriver for cross-browser UI testing
- 🧱 Page Object Model (POM) architecture for modular and reusable test code
- ⚡️ Supports parallel test execution with
pytest-xdist - 📊 HTML reporting via
pytest-html - ☁️ CI-ready for GitHub Actions, GitLab CI, and Jenkins
- 🧪 Custom Pytest fixtures for flexible setup/teardown
- 🌐 Easily extendable for API testing or cloud testing platforms (e.g. BrowserStack)
git clone https://github.com/your-username/selenium-pytest-framework.git
cd selenium-pytest-frameworkpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtpytest tests/pytest -v --html=reports/report.html --self-contained-htmlpytest -n auto tests/pytest --browser=chromeselenium- 'pytest-selenium'
pytestpytest-htmlpytest-xdistpython-dotenv(optional for env config)
Install all via:
pip install -r requirements.txt- Compatible with GitHub Actions, GitLab CI, Jenkins
- Easily extendable to work with BrowserStack, Sauce Labs, or LambdaTest
- Add API tests using
requestsorhttpx
Have ideas or improvements?
Feel free to fork the repo, create a branch, and open a pull request. Contributions are welcome!
This project is licensed under the MIT License