Debugging & workflows
Use console output, the inspector, long-lived browser servers, companion packages, and assistant-safe workflows.
Read the console
Listen to page console messages by type and text.
Pause in the inspector
Open the inspector and pause execution for debugging.
Connect to a remote browser
Connect to a remote browser over a wsEndpoint.
AI assistant workflows
Draft Playwright PHP tests with a coding assistant, then verify selectors, API calls, and generated code against the documentation and local tests.