Create a Page Object Model (POM) for a specific page or component. Generates a TypeScript class with locators and methods following the Page Object pattern with data-testid locators.
Generates TypeScript Page Object Model classes with data-testid locators and methods for automated testing.
/plugin marketplace add joel611/claude-plugins/plugin install playwright-e2e@joel-pluginsCreate a Page Object Model (POM) for a specific page or component. Generates a TypeScript class with locators and methods following the Page Object pattern with data-testid locators.
/create-page-object [page-name]
page-name - Name of the page or component (required)/create-page-object LoginPage
/create-page-object ProductDetailsPage
/create-page-object CheckoutForm
When this command is invoked:
Invoke the page-object-builder skill to handle the Page Object creation
Gather information:
Generate Page Object class:
Provide usage example:
List required data-testid values: