{
  "slug": "wait-for-can-match-visible-text-fc0f6f6ba0e6",
  "title": "wait_for can match visible text",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-22T13:47:54.000Z",
  "announced_at": "2026-10-22T13:47:54.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When testing a page interaction, wait for the confirmation text to become visible. Call `wait_for` with `visible: true`, a non-empty `text` list, and the target `pageId`.",
    "examples": [
      "wait_for({pageId:<pageId>,text:[\"Saved successfully\"],visible:true,timeout:5000})"
    ],
    "gotchas": [
      "Version: 1.12.0",
      "pageId (required): Page ID to target.",
      "text (required): Non-empty list of strings; resolves when any listed text appears.",
      "visible: When true, wait until matching text is visible; otherwise hidden text also counts.",
      "timeout: Maximum wait in milliseconds; 0 uses the default timeout.",
      "Prerequisite: Chrome DevTools MCP requires Node.js LTS, npm, and current stable Chrome or newer.",
      "Visible-text matching is opt-in.",
      "By default, hidden text also counts.",
      "Docs conflict: The release-note example omits `pageId`, but the v1.12.0 tool reference marks it required."
    ]
  },
  "why_it_matters": "Wait for a visible confirmation message while testing a page interaction.",
  "before": "Before this change, `wait_for` could resolve on text in the DOM even when it was hidden; the prior behavior remains when `visible` is omitted or false.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.12.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/3212",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.12.0/docs/tool-reference.md",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.12.0/README.md"
  ],
  "rank": 0.97054,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261026-04",
    "verdict_id": "daily-20261026-04:daily-20261026-04-b4427e862d4e16f0-9:gate",
    "evidence_hash": "c825107930cf2bc5d240146a7aab39e78c1a0f58e2f52b3d36cd7f8111ce0f62"
  },
  "review": {
    "draft_hash": "9ea8116b2ab168f98ce58c569ebb1c23c12f274197397bb98dd58b48944a1790",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-22T13:47:54.000Z",
    "decision": "daily-20261026-04:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
