{
  "slug": "playwright-codegen-records-against-http-authenticated-pages-5e20cbcdaf4a",
  "title": "Playwright codegen records against HTTP-authenticated pages",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-04T22:40:31.000Z",
  "announced_at": "2026-09-04T22:40:31.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When recording tests for an HTTP Basic Authentication page, run `codegen` with `--http-credentials=\"username:password\"` and the page URL. Credentials are sent to any origin that requests them during recording and are included in generated code.",
    "examples": [
      "npx playwright codegen --http-credentials=\"<username>:<password>\" <url>"
    ],
    "gotchas": [
      "Version: v1.63.0",
      "--http-credentials (required): HTTP Basic Authentication credentials in `username:password` form; sent to any origin that requests them during recording and included in generated code.",
      "<url>: Website URL to generate tests for; may be omitted and entered in the browser instead."
    ]
  },
  "why_it_matters": "Generate test code for a page protected by HTTP authentication.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.63.0",
    "https://github.com/microsoft/playwright/blob/v1.63.0/docs/src/codegen.md"
  ],
  "rank": 0.97026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-579bf8375159b0fd-14:gate",
    "evidence_hash": "8f458d0a9fe7d706ecdbbba7433f7d4b9f5359e0c90f3581627b8ce9e8b79bc6"
  },
  "review": {
    "draft_hash": "5f9438b101d56fe48a233ab02f7584f746939d7de55ae59b59888bc9e43dc6f9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
