qa-playwright-py-writer

Generate Playwright E2E tests for Python applications using pytest-playwright.

2|2|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/AZANIR/qa-skills --skill qa-playwright-py-writer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: qa-playwright-py-writer
Source: https://github.com/AZANIR/qa-skills/tree/main/.cursor/skills/qa-playwright-py-writer
Command: npx skills add https://github.com/AZANIR/qa-skills --skill qa-playwright-py-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of end-to-end (E2E) tests for web applications using Playwright with Python, significantly reducing the manual effort and time required for test development.

Core Features & Use Cases

  • Automated Test Generation: Writes Playwright Python tests from structured test case specifications.
  • Page Object Model (POM): Implements the POM pattern for maintainable and scalable test suites.
  • Record Mode: Captures user interactions directly from a browser to generate test code.
  • Use Case: You need to create robust E2E tests for a new user authentication flow. This Skill can generate pytest compatible Python files, complete with POM structure and Playwright's auto-waiting capabilities, ensuring reliable test execution.

Quick Start

Generate Playwright Python tests for the login page using the provided test case specifications.

Frequently Asked Questions about qa-playwright-py-writer

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

FAQPage Schema
How do I generate Playwright Python E2E tests automatically?▼

You can generate Playwright Python E2E tests automatically by providing structured test case specifications to the Skill. It outputs pytest-playwright compatible Python files, complete with locators, assertions, and the Page Object Model pattern for maintainable test suites.

Does the Page Object Model pattern work with pytest-playwright test generation?▼

Yes, the Page Object Model pattern is fully supported during pytest-playwright test generation. The Skill implements POM architecture natively, separating page element locators and interactions from test logic to ensure your test suites remain scalable and maintainable.

Can I record browser interactions to create Python Playwright tests?▼

Yes, you can record browser interactions to create Python Playwright tests using the live browser record mode. The Skill integrates with Playwright's MCP to capture user interactions directly from the browser and translate them into pytest compatible test code automatically.

What is the best way to structure asynchronous Playwright tests in Python?▼

The best way to structure asynchronous Playwright tests in Python is by utilizing the Skill's automated generation capabilities. It supports both synchronous and asynchronous APIs, applying best practices for locators and auto-waiting to ensure reliable execution of async E2E tests.

Do I need pytest to run generated Playwright Python E2E tests?▼

Yes, you need pytest to run the generated Playwright Python E2E tests. The Skill relies on the pytest-playwright framework to configure test execution, apply best practices for assertions, and manage the generated Python test files effectively.

How does Playwright auto-waiting integrate with generated pytest files?▼

Playwright auto-waiting integrates with generated pytest files through built-in framework best practices. The Skill automatically applies Playwright's auto-waiting capabilities to locators and assertions, ensuring reliable test execution without manual sleep commands or explicit wait conditions.