API reference
Look up exact PHP classes, methods, signatures, options, and related types. Start with the area of browser work you are doing.
Find the right API
Launch and isolate
Choose an engine, create a context, then open a page.
Locate and act
Find visible UI and drive it with user-facing actions.
Assert the result
Use retrying expectations for pages, locators, and responses.
Request and route
Call APIs directly or intercept traffic from a browser page.
Record what happened
Keep screenshots, traces, video, and console output.
Listen and react
Handle page events, dialogs, workers, and WebSockets.