Guide
Learn browser testing with Playwright PHP: browser contexts, locators, assertions, network requests, screenshots, tracing, and PHPUnit integration.
The Guide is the main Playwright PHP documentation. Read it in order when you are learning the browser model, or enter through the chapter that matches the problem in front of you.
If you have not run a browser yet, begin with Getting Started. If you already know the concept and need an exact method signature, go directly to the API reference.
Choose a path
- Building a first test suite: Browser, Interaction, then Testing.
- Fixing a flaky test: Timeouts and retries, Capture, then Errors and failure analysis.
- Controlling a difficult backend state: Network, Routing, then API requests.
- Testing inside a Symfony kernel: Symfony, then Getting started.
- Understanding a client or driver problem: Architecture, then Transport.
Each chapter teaches the mental model first, then safe defaults, trade-offs, common failures, and focused tasks. Recipes are better when you only need copyable steps; the Guide is where the decisions are explained.