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

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.