What problem does it solve?
This Skill helps you avoid brittle, hard-to-maintain Playwright tests by showing how to organize UI code using the Page Object Model instead of leaking low-level locators throughout your specs.
Core Features & Use Cases
- Decision framework: Choose POM vs fixtures vs helpers based on page complexity and reuse across test files.
- Action-oriented page objects: Design page objects so tests call intent methods (e.g., login, submit, navigate) rather than manipulating raw locators.
- Good POM structure: Keep assertions in tests, keep page objects stateless, and return destination page objects for navigation-based flows.
- Scalable patterns: Use fixtures for widely shared page objects, components via Locator-scoped composition, and getters/factories for dynamic or initialization-heavy pages.
Quick Start
Use the pom Skill to refactor a multi-step page interaction into a page object class (or fixtures) where tests call intent methods and assertions remain in the spec files.