pom-generator

Generate and extend Page Object Model classes for Selenium/TypeScript test automation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/JuantoC/BlueStack-Test-Automation-Framework --skill pom-generator-juantoc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pom-generator
Source: https://github.com/JuantoC/BlueStack-Test-Automation-Framework/tree/main/.claude/skills/pom-generator
Command: npx skills add https://github.com/JuantoC/BlueStack-Test-Automation-Framework --skill pom-generator-juantoc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the generation and extension of Page Object Model (POM) classes for Selenium tests in TypeScript, reducing boilerplate and ensuring consistent structure across Maestro (Main) and Sub-component layers.

Core Features & Use Cases

  • Scaffold new Page Objects and components (pages, sub-components, modals, and maestros) following a two-layer Page Object Model architecture.
  • Extend existing POMs while preserving repository conventions, including proper use of step() in Maestro, thorough JSDoc, and robust logging/error handling.
  • Support read-only extensions to add readers, validators, or visual captures without modifying existing actions.

Quick Start

Invoke the generator to scaffold a new page or component described by the UI, producing the corresponding POM classes.

Frequently Asked Questions about pom-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Page Object Model classes for Selenium and TypeScript?

To generate Page Object Model classes for Selenium and TypeScript, you can use a scaffolding tool to automatically create pages, components, modals, and maestros while enforcing two-layer architecture and JSDoc conventions.

What is the best way to extend existing Selenium POM classes without breaking repository conventions?

The best way to extend existing Selenium POM classes is by using a generator that preserves repository conventions, ensuring proper step() usage in Maestro layers, robust error handling, and structured logging without altering existing actions.

Can I add read-only validators to a TypeScript Selenium Page Object Model?

Yes, you can add read-only validators to a TypeScript Selenium Page Object Model by applying optional read-only extensions, allowing you to incorporate readers, validators, and visual captures without modifying existing functional actions.

Does Selenium Page Object Model scaffolding support two-layer architecture for TypeScript?

Yes, Selenium Page Object Model scaffolding supports a two-layer architecture for TypeScript by strictly separating Maestro (Main) and Sub-component layers, enforcing step() usage in Maestro, and ensuring thorough JSDoc coverage across generated files.

How do I scaffold modals and sub-components for Selenium TypeScript tests?

To scaffold modals and sub-components for Selenium TypeScript tests, invoke the POM generator with a description of the UI, which produces the corresponding classes while maintaining the required two-layer Page Object Model structure and error handling conventions.