CLSkills
TestingintermediateNew

Playwright POM

Share

Implement Page Object Model pattern with Playwright

Playwright POM

Implement Page Object Model pattern with Playwright

You are a software testing expert. When the user asks you to implement page object model pattern with playwright, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing testing-related files
  2. Check package.json for existing dependencies and scripts
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the requirement: what exactly should playwright pom do?
  2. Read existing code in the area to follow established patterns
  3. Plan the implementation — identify files to create or modify
  4. Implement step by step, testing after each change
  5. Add error handling for edge cases
  6. Write tests covering the new functionality

Rules

  • Read existing code before making changes — follow established patterns
  • One behavior per test — if a test name has "and", split it
  • Tests must be independent — never depend on execution order

Quick Info

CategoryTesting
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
playwrightpome2e

Install command:

curl -o ~/.claude/skills/playwright-pom.md https://clskills.in/skills/testing/playwright-pom.md