npx playwright test --headed

Category: Web App Development

npx playwright test --headed

Run Playwright tests in a visible browser

Runs the suite with browsers shown on screen instead of headless, useful for debugging flaky selectors and watching the app behave. Combined with --debug you get the inspector and step controls. Keep headless for CI runs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.