playwright

Develop Playwright End-to-End tests with Page Object Model patterns.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/z-ph/newLab --skill playwright-z-ph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/z-ph/newLab/tree/main/.opencode/skills/playwright
Command: npx skills add https://github.com/z-ph/newLab --skill playwright-z-ph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of reliable End-to-End (E2E) tests for web applications using Playwright, ensuring application quality and stability.

Core Features & Use Cases

  • Page Object Model: Enforces a structured and maintainable approach to test automation.
  • Selector Prioritization: Guides users to employ the most robust and least fragile selectors.
  • Test Documentation: Provides a clear format for documenting test cases and their objectives.
  • Use Case: Develop comprehensive E2E test suites for a new feature, ensuring all user flows are validated before release.

Quick Start

Use the playwright skill to create a new E2E test for the user login functionality.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I structure Playwright E2E tests using the Page Object Model?

Structure Playwright E2E tests by enforcing a Page Object Model pattern that separates page interactions from test logic. This approach ensures deterministic task execution and maintainable test automation for web applications.

What is the best way to select elements in Playwright to avoid fragile tests?

The best way to avoid fragile Playwright tests is through selector prioritization. This Skill guides you to employ the most robust selectors, reducing test flakiness and ensuring reliable End-to-End web testing execution.

How do I document Playwright test cases and their objectives?

Document Playwright test cases by using a clear format provided for test cases and their objectives. This test documentation standard ensures comprehensive validation of user flows before release and maintains application quality.

Do I need specific file naming conventions for Playwright test automation?

Yes, Playwright test automation requires strict file structure and naming conventions. Adhering to these conventions ensures deterministic task execution through scripts and long-term maintainability of your End-to-End test suite.

Can I execute Playwright tests deterministically through scripts?

Yes, you can execute Playwright tests deterministically through scripts. This Skill supports deterministic task execution by providing in-depth information retrieval from references and enforcing strict file structure conventions.