pw·handbook
Levels Domain Projects Capstones Search GitHub
level 04 / framework-design

Production Framework Design

POM to Screenplay, design patterns, SOLID — architecture that survives 5,000 tests.

Folder Structure & Layered Architecture

How production Playwright frameworks are organised — the layers, what belongs in each, and the dependency rule that keeps 5,000 tests maintainable.

30 min

Page Object Model

POM done properly — locators as fields, component objects for shared UI, fixture injection, and the navigation-returns-page pattern.

40 min

Screenplay & Fluent Patterns

Beyond POM — the Screenplay pattern's actors, tasks, and questions, plus fluent chaining. When each pattern earns its complexity.

35 min

Design Patterns for Test Frameworks

Singleton, Factory, Builder, Strategy, and Dependency Injection — applied to the problems test frameworks actually have.

45 min

SOLID for Automation

The five SOLID principles translated into test framework decisions — with the violations you'll actually meet in real suites.

35 min

Clean Code — DRY, KISS, YAGNI

The three principles that keep test code honest — and the test-specific places where DRY is actually wrong.

25 min
pw·handbook — production-grade Playwright engineering, level by level.
Home · Playwright Docs · MIT License