CLI Finder / tools / playwright-cli

ブラウザ自動化と UI 検証のための Playwright CLI

CLI からブラウザテスト、trace、ユーザーフロー検証を実行できます。

Agent 適合度: 90/100 検証済み発行元 継続的にメンテナンス中
90 /100

Excellent for UI verification agents when flows are scoped and evidence is captured.

Structured output 88/100

Whether the CLI can return JSON, YAML, or stable machine-readable output.

Non-interactive use 92/100

Whether common workflows can run predictably without an interactive prompt.

Safety boundaries 74/100

Whether read-only, dry-run, scoped auth, and destructive command boundaries are clear.

インストール方法

npm init $ npm init playwright@latest
package $ npm install -D @playwright/test

よく使うコマンド

Run tests · 安全 $ npx playwright test

Runs browser tests in CI or locally.

Open report · 安全 $ npx playwright show-report

Inspects the generated HTML report.

Codegen · 要確認 $ npx playwright codegen https://example.com

Records browser actions for a target site.

Agent 使用例

Codex CLI Use Playwright to verify local UI changes on desktop and mobile, capture evidence, and report console errors.

安全メモ

  • Browser automation should avoid destructive authenticated flows unless explicitly approved.
  • Use screenshots, traces, and test reports as evidence for agent conclusions.

Agent が使えること

Playwright CLI はローカルページのテスト、スクリーンショット、レポート確認、フロー検証に役立ちます。

向いている用途

フロントエンド QA、ブラウザ回帰テスト、ローカルプロダクトフロー検証に適しています。