Scaffolding
Promethee-Selenium comes with powerful scaffolding capabilities, enabling you to bootstrap a complete automation project structure with a single CLI command.
The Init Command
To initialize a new project, navigate to your desired directory and run:
promethee-selenium init
Standard Structure
The CLI populates your directory with best-practices architecture tailored for Selenium and Pytest:
.
├── conftest.py
├── data/
│ └── test_data.csv
├── scenarios/
│ └── login_page.py
├── tests/
│ └── test_login.py
└── utils/
└── browser_factory.py
Directory Breakdown
- scenarios/: Contains all your Page Object Model schemas. Locators and actions defining UI structures go here.
- tests/: Pytest test scripts (e.g.
test_login.py) running your assertions via the scenario layer. - data/: Static files, configs, and raw test data.
- utils/: Auxiliary logic, external bridges, API clients, reporting plugins.
- conftest.py: Pytest entry point containing the fixtures.