📄️ Introduction to Serenity Playwright
The serenity-playwright module provides seamless integration between Serenity BDD's powerful reporting capabilities and Playwright's modern browser automation. This combination gives you the best of both worlds:
📄️ Getting Started
This guide will help you set up a new Serenity Playwright project from scratch.
📄️ Page Objects
Page Objects are a design pattern that encapsulates the structure and behavior of a web page. With Playwright and Serenity, Page Objects provide a clean separation between your test logic and page implementation details.
📄️ Screenplay Pattern with Playwright
The Screenplay Pattern is a modern, actor-centric approach to writing automated tests. When combined with Playwright, it provides a powerful, expressive way to write browser automation tests that read like living documentation.
📄️ Step Libraries
Step Libraries are the bridge between your tests and Page Objects. They provide Serenity's rich reporting capabilities through @Step annotations while keeping your tests clean and readable.
📄️ Configuration
Serenity Playwright can be configured through various means to customize browser behavior, screenshot capture, and reporting.
📄️ Best Practices
This guide covers best practices for writing maintainable, reliable, and efficient Serenity Playwright tests.
📄️ Tutorial: Testing TodoMVC
This tutorial walks through building a Serenity Playwright test suite for the TodoMVC application. Rather than showing you the finished code upfront, we'll build it iteratively—starting with a single test and adding only what we need as we go.
📄️ Tutorial: Screenplay with TodoMVC
This tutorial walks through building a Serenity Playwright test suite using the Screenplay Pattern for the TodoMVC application. We'll build it iteratively, starting with the fundamentals and progressively adding more sophisticated patterns.
📄️ Cucumber Integration
Cucumber provides a natural language syntax for writing behavior-driven tests. When combined with Serenity Playwright's Screenplay implementation, you get expressive BDD scenarios that drive reliable browser automation.