Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 576 Bytes

File metadata and controls

16 lines (12 loc) · 576 Bytes

Playwright Inspector (PHP)

Use Playwright Inspector to step through actions, inspect locators, and evaluate scripts.

Quick start:

  • Builder: $browser = $playwright->chromium()->withHeadless(false)->withInspector()->launch();
  • Pause anywhere: $page->pause();
  • Or via environment: PWDEBUG=1 php your_script.php

Example:

  • php docs/examples/inspector_demo.php

Notes:

  • Inspector is controlled by the Node server; PWDEBUG is forwarded automatically.
  • Run headed (headless: false) to see browser UI while debugging.
  • For CI/Linux without a display, use Xvfb.