Complete guide to using Pomgo CLI for test automation
Requires Node.js 18+ installed on your system
Request a license token from the Get Started page
For precise control, use the interactive picker to select exactly the elements you need:
Ctrl+Shift+X to toggle picking modeCtrl+C to exitOutput: output/picked/picked-elements-latest.json
For quick extraction of all interactive elements without manual selection:
Output: output/your-app.com.json
Note: This extracts all interactive elements automatically, which may include elements you don't need
Generate clean, maintainable Page Object Model classes with AI-powered naming and grouping:
emailInput instead of input1)login() instead of generic methods)Output: output/pom/LoginPage.ts
Note: Requires OPENAI_API_KEY environment variable
Interactive element picker with visual highlighting
Automatically extract all interactive elements from a page
Generate Page Object Model classes from JSON
--llm - Use AI (GPT-4) for intelligent code generation--framework <fw> - playwright | selenium | cypress (default: playwright)--output <dir> - Output directory (default: output/pom)--merge <file> - Merge new elements into existing POM--no-actions - Don't generate action methodsDefault framework
--framework playwrightWebDriver support
--framework seleniumEnd-to-end testing
--framework cypressStore your token in a .env file to avoid passing it with every command:
AI-powered generation produces cleaner, more maintainable code with better naming conventions
Use interactive picking for critical user flows to ensure you select only the elements you need
When updating existing POMs, use --merge to combine new elements with existing ones