SeleniumFW - A minimal Selenium test framework that adapt POM
Project description
SeleniumFW 🚀
A lightweight, POM structured test automation framework for Python + Selenium, including:
- 📦 Project scaffolding with
sfw init - ⟳ Test suite, test case, feature, and step generation using Jinja2 templating
- ▶️ Runner for executing feature (
.feature), YAML suite, or.pytest case files - 🌐 REST API server (
sfw serve) to list and schedule test suites - ⚙️ Typer-powered CLI for all commands
- 🛡️ Hooks/listener system,
dotenvsupport, jinja templating
🔧 Features
sfw init <project>— bootstrap a complete SeleniumFW project scaffoldsfw create-testsuite <name>— generate boilerplate YAML test suite &.pyfor its test suite hooksfw create-testcase <name>— generate a.pytest case stubsfw create-listener <name>— generate a test listenersfw create-feature <name>— generate a.featurefilesfw implement-feature <name>— autogenerate step definitions from your.featuresfw run <target>— run one of.feature,.yml, or.pytest scriptssfw serve [--port <port>]— expose a REST API to list, run, and schedule test suites
✅ Installation
pip install seleniumfw
Or locally:
git clone https://github.com/badrusalam11/seleniumfw.git
cd seleniumfw
pip install -e .
🚀 Quick Start
1. Scaffold a new project
sfw init myproject
cd myproject
2. Create testsuite/feature/case
sfw create-testsuite login
sfw create-feature login
sfw implement-feature login
3. Add test logic in testcases/, steps/, etc.
4. Run tests
sfw run features/login.feature # via behave
sfw run testsuites/login.yml # via runner
5. REST API server
sfw serve
curl http://localhost:5006/api/suites
curl -X POST http://localhost:5006/api/run -d '{"testsuite_path":"testsuites/login.yml","phone_number":""}'
🛠️ Configuration
Use a .env in your project root to customize:
APP_PORT=5006
SERVER_URL=http://localhost:5006
💡 Why use SeleniumFW?
- 🧠 Inspired by Katalon, but for Python developers
- 🌟 Supports feature files + step generation + scheduling
- 🚀 Design for both CLI use and API integration
- 🧹 Expandable via listeners/hooks,
Config,BrowserFactory, etc.
🤝 Contributing
PRs are welcome! Please ensure:
- Code is well-documented and follows PEP8
- Templates & CLI updated accordingly
README.mdand tests updated- Use Black, Flake8, isort (recommended)
📜 License
MIT — see LICENSE for details.
📨 Contact
Built & maintained by Muhamad Badru Salam — QA Automation Engineer (SDET)
Github: badrusalam11 LinkedIn: Muhamad Badru Salam
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seleniumfw-0.1.8.tar.gz.
File metadata
- Download URL: seleniumfw-0.1.8.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22051c3d655bb3c45b3c941989f66bc8c756223f397a02315ad378be9c3b8d2d
|
|
| MD5 |
b8248006b8d28ee973f40e1ca23b7855
|
|
| BLAKE2b-256 |
1ace0e2b07b9ee036942f1eae28f78c378d691fe98ef7d5290c2e99cffc302cc
|
File details
Details for the file seleniumfw-0.1.8-py3-none-any.whl.
File metadata
- Download URL: seleniumfw-0.1.8-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d98b1553a733bcfa0be646c9389b3df94a6ee9520d92b56b514d090fe8cd052
|
|
| MD5 |
068802a02c8999be770ca13c152cde93
|
|
| BLAKE2b-256 |
f950bdd02e3c82658ca1941a75e7973ba25e177e51846817ac6d8906f3a9728c
|