Playwright Cheatsheet - prashanth-sams/playwright-workshop GitHub Wiki

Runners

Description Command
Initialize a new Playwright project npm init playwright@latest# oryarn create playwright
Test Runner -> Incognito window npx playwright test
Test Runner -> UI (chromium, firefox, webkit) npx playwright test --ui
Test Runner -> specific browser npx playwright test --chromium
Test Runner -> debug mode npx playwright test --debug
HTML Test Report npx playwright show-report
Auto-code Generator npx playwright codegen