page-object-assistant
v0.1.4
Published
π€ Poa β Page Object Architecture Assistant (CLI for structured test automation)
Maintainers
Readme
π€ Poa β Page Object Architecture Assistant
Poa is your friendly CLI tool for navigating, creating, and maintaining a clean, scalable Page Object structure in test automation projects.
π Features
- β Find page object by full URL
- β Identify dynamic segments
- β Create new page objects with clean structure
- β Initialize in application class
- β Automatically detect existing dynamic page files
- β Config-free and intuitive
π Installation
npm install page-object-assistantπ§ͺ Usage
npx poa find https://your-app.com/projects/123/users/456Options:
| Flag | Description |
|------|-------------|
| --app | Manually set app name |
| --create-page-object | Auto-create if missing |
| --open | Open file after creation |
| --editor | vscode, jetbrains, or default |
| --no-prompt | Skip confirmation prompts |
| --format | Output as json or plain |
| --output | Export info to file |
| --config | Custom config path |
| --create-app, --create-base-page-object, --init-page-in-app | Optional auto behaviors |
π Structure
Poa uses a folder-based routing pattern, just like modern front-end frameworks:
page-objects/
βββ galaxy/
βββ app.ts
βββ projects/
βββ [projectId]/
βββ users/
βββ [userId]/
βββ page.tsπ§ Philosophy
- βοΈ No config required
- π₯ Team-friendly
- π§ Smart enough to assist
- π‘ Opinionated enough to enforce structure
π License
MIT
