Modern QA2026Command Logging — tiles
Log inJoin
94 / 168 · 01 Agent Skills for Browser Automation · Reporting and Observability← prev⊞ allnext →☰ Read as one page

13.2Command Logging

Every playwright-cli command the agent executes should be logged:

[2026-07-09T14:23:01Z] playwright-cli open https://app.example.com/login
  → exit 0, 1.2s

[2026-07-09T14:23:02Z] playwright-cli snapshot
  → exit 0, 0.3s, .playwright-cli/snapshot-001.yaml

[2026-07-09T14:23:03Z] playwright-cli fill e3 "user@test.com"
  → exit 0, 0.3s

[2026-07-09T14:23:03Z] playwright-cli fill e4 "***"
  → exit 0, 0.2s

[2026-07-09T14:23:04Z] playwright-cli click e5
  → exit 0, 0.4s

[2026-07-09T14:23:05Z] playwright-cli snapshot
  → exit 0, 0.2s, .playwright-cli/snapshot-002.yaml
  → verified: heading "Welcome, User"

This log enables:

  • Replay — run the exact same commands to reproduce an issue
  • Timing analysis — identify slow steps
  • Debugging — see exactly what the agent did, with each snapshot file as the state evidence for that moment