{
  "format": 3,
  "id": "2.4",
  "title": "Concept map: a click checks what is under its point",
  "layers": {
    "client": {
      "label": "Client"
    },
    "server": {
      "label": "Server"
    },
    "page": {
      "label": "Page"
    },
    "browser": {
      "label": "Browser"
    }
  },
  "lanes": {
    "test": {
      "label": "YOUR TEST",
      "layer": "client",
      "y": 16,
      "h": 72,
      "x": 16,
      "w": 461.73499999999996
    },
    "server": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 192.6,
      "h": 425.20000000000005,
      "x": 16,
      "w": 461.73499999999996
    },
    "page": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 722.4000000000001,
      "h": 248.60000000000002,
      "x": 16,
      "w": 461.73499999999996
    },
    "browser": {
      "label": "BROWSER",
      "layer": "browser",
      "y": 1075.6000000000001,
      "h": 72,
      "x": 16,
      "w": 461.73499999999996
    },
    "events": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 1252.2,
      "h": 248.5999999999999,
      "x": 16,
      "w": 461.73499999999996
    },
    "result": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 1528.8,
      "h": 248.5999999999999,
      "x": 16,
      "w": 461.73499999999996
    }
  },
  "frames": {},
  "nodes": {
    "call": {
      "label": "locator.click()",
      "layer": "client",
      "lane": "test",
      "box": [
        129.0743333333333,
        40,
        109,
        36
      ]
    },
    "scroll": {
      "label": "scroll alignment",
      "layer": "server",
      "lane": "server",
      "box": [
        121.07433333333331,
        216.6,
        125,
        36
      ]
    },
    "point": {
      "label": "calculate click point",
      "layer": "server",
      "lane": "server",
      "box": [
        300.23499999999996,
        393.20000000000005,
        149,
        36
      ]
    },
    "frames": {
      "label": "check containing iframes",
      "layer": "server",
      "lane": "server",
      "box": [
        283.73499999999996,
        569.8000000000001,
        182,
        36
      ]
    },
    "pre": {
      "label": "preliminary hit check",
      "layer": "page",
      "lane": "page",
      "box": [
        296.23499999999996,
        746.4000000000001,
        157,
        36
      ]
    },
    "listener": {
      "label": "install event listener",
      "layer": "page",
      "lane": "page",
      "box": [
        298.73499999999996,
        923.0000000000001,
        152,
        36
      ]
    },
    "mouse": {
      "label": "mouse move · down · up",
      "layer": "browser",
      "lane": "browser",
      "box": [
        285.23499999999996,
        1099.6000000000001,
        179,
        36
      ]
    },
    "event": {
      "label": "first-event hit check",
      "layer": "page",
      "lane": "events",
      "box": [
        299.73499999999996,
        1276.2,
        150,
        36
      ]
    },
    "block": {
      "label": "block missed events",
      "layer": "page",
      "lane": "events",
      "box": [
        273.73499999999996,
        1452.8,
        152,
        36
      ]
    },
    "result": {
      "label": "collect hit result",
      "layer": "server",
      "lane": "result",
      "box": [
        287.23499999999996,
        1729.3999999999999,
        125,
        36
      ]
    },
    "retry": {
      "label": "retry click action",
      "layer": "server",
      "lane": "result",
      "box": [
        98.24099999999999,
        1552.8,
        129,
        36
      ]
    }
  },
  "edges": {
    "request": {
      "from": "call",
      "to": "scroll",
      "label": {
        "at": [
          93.08033333333333,
          150.5
        ],
        "text": "starts attempt"
      },
      "path": "M183.5743333333333,76 L183.5743333333333,216.6",
      "badge": [
        183.5743333333333,
        163.875
      ]
    },
    "point": {
      "from": "scroll",
      "to": "point",
      "label": {
        "at": [
          377.73499999999996,
          327.1
        ],
        "text": "after scrolling"
      },
      "path": "M204.40766666666667,252.6 L204.40766666666667,262.6 L374.73499999999996,262.6 L374.73499999999996,393.20000000000005",
      "badge": [
        349.8713333333333,
        262.6
      ]
    },
    "frames": {
      "from": "point",
      "to": "frames",
      "label": {
        "at": [
          377.73499999999996,
          503.70000000000005
        ],
        "text": "checks frame chain"
      },
      "path": "M374.73499999999996,429.20000000000005 L374.73499999999996,569.8000000000001",
      "badge": [
        374.73499999999996,
        517.075
      ]
    },
    "pre": {
      "from": "frames",
      "to": "pre",
      "label": {
        "at": [
          377.73499999999996,
          680.3000000000001
        ],
        "text": "checks point"
      },
      "path": "M374.73499999999996,605.8000000000001 L374.73499999999996,746.4000000000001",
      "badge": [
        374.73499999999996,
        693.6750000000001
      ]
    },
    "install": {
      "from": "pre",
      "to": "listener",
      "label": {
        "at": [
          377.73499999999996,
          856.9000000000001
        ],
        "text": "if target / descendant"
      },
      "path": "M374.73499999999996,782.4000000000001 L374.73499999999996,923.0000000000001",
      "badge": [
        374.73499999999996,
        870.2750000000001
      ]
    },
    "input": {
      "from": "listener",
      "to": "mouse",
      "label": {
        "at": [
          377.73499999999996,
          1033.5000000000002
        ],
        "text": "sends input"
      },
      "path": "M374.73499999999996,959.0000000000001 L374.73499999999996,1099.6000000000001",
      "badge": [
        374.73499999999996,
        1046.875
      ]
    },
    "event": {
      "from": "mouse",
      "to": "event",
      "label": {
        "at": [
          377.73499999999996,
          1210.1000000000001
        ],
        "text": "first relevant event"
      },
      "path": "M374.73499999999996,1135.6000000000001 L374.73499999999996,1276.2",
      "badge": [
        374.73499999999996,
        1223.4750000000001
      ]
    },
    "miss": {
      "from": "event",
      "to": "block",
      "label": {
        "at": [
          278.20399999999995,
          1386.7
        ],
        "text": "miss blocks"
      },
      "path": "M349.73499999999996,1312.2 L349.73499999999996,1452.8",
      "badge": [
        349.73499999999996,
        1400.075
      ]
    },
    "collect": {
      "from": "event",
      "to": "result",
      "label": {
        "at": [
          460.73499999999996,
          1475
        ],
        "text": "read after input"
      },
      "path": "M399.73499999999996,1312.2 L399.73499999999996,1322.2 L457.73499999999996,1322.2 L457.73499999999996,1675.3999999999999 L380.98499999999996,1675.3999999999999 L380.98499999999996,1729.3999999999999",
      "badge": [
        457.73499999999996,
        1530.175
      ]
    },
    "blocked": {
      "from": "block",
      "to": "result",
      "label": {
        "at": [
          259.241,
          1575
        ],
        "text": "blocked result"
      },
      "path": "M349.73499999999996,1488.8 L349.73499999999996,1729.3999999999999",
      "badge": [
        349.73499999999996,
        1609.1
      ]
    },
    "retry": {
      "from": "result",
      "to": "retry",
      "label": {
        "at": [
          84.88900000000001,
          1663.3
        ],
        "text": "miss retries"
      },
      "path": "M318.48499999999996,1729.3999999999999 L318.48499999999996,1675.3999999999999 L162.74099999999999,1675.3999999999999 L162.74099999999999,1588.8",
      "badge": [
        224.31300000000002,
        1675.3999999999999
      ]
    },
    "again": {
      "from": "retry",
      "to": "scroll",
      "label": {
        "at": [
          28,
          856.9000000000001
        ],
        "text": "next scroll alignment"
      },
      "path": "M162.74099999999999,1552.8 L162.74099999999999,252.6",
      "badge": [
        162.74099999999999,
        902.6999999999999
      ]
    }
  },
  "scenarios": [
    {
      "id": "how",
      "label": "How the click point is checked",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "you-call-click",
          "title": "You call click()",
          "text": "After the state checks, a normal click scrolls the element into view.",
          "show": [
            "call",
            "scroll"
          ],
          "current": [
            "call",
            "scroll"
          ],
          "edges": [
            "request"
          ],
          "defs": [
            "scroll"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:409-420",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L409-L420"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "retries-change-the-scroll-alignm",
          "title": "Retries change the scroll alignment",
          "text": "The first attempt uses browser scrolling. Retries cycle through end, center and start, then browser scrolling again.",
          "show": [
            "retry",
            "scroll"
          ],
          "current": [
            "retry",
            "scroll"
          ],
          "edges": [
            "again"
          ],
          "defs": [
            "retry",
            "scroll"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:409-420",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L409-L420"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-point-is-calculated-after-sc",
          "title": "The point is calculated after scrolling",
          "text": "Playwright clips boxes to the viewport and skips almost empty pieces. Normally it uses the first remaining piece’s middle; Firefox first tries an integer point. An explicit position starts at the padding edge.",
          "show": [
            "point"
          ],
          "current": [
            "point"
          ],
          "edges": [
            "point"
          ],
          "defs": [
            "point"
          ],
          "code": "point",
          "sources": [
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:256-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L306"
            },
            {
              "label": "dom.ts:309-325",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L309-L325"
            },
            {
              "label": "dom.ts:256-261",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L261"
            },
            {
              "label": "dom.ts:276-290",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L276-L290"
            },
            {
              "label": "dom.ts:291-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L291-L306"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "containing-iframes-are-checked",
          "title": "Containing iframes are checked",
          "text": "For an element inside an iframe, Playwright checks each iframe on the way.",
          "show": [
            "frames"
          ],
          "current": [
            "frames"
          ],
          "edges": [
            "frames"
          ],
          "defs": [
            "frames"
          ],
          "sources": [
            {
              "label": "dom.ts:967-985",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-point-must-hit-the-target-or",
          "title": "The point must hit the target or a descendant",
          "text": "Before input, the preliminary hit check accepts the target or something inside it.",
          "show": [
            "pre"
          ],
          "current": [
            "pre"
          ],
          "edges": [
            "pre"
          ],
          "defs": [
            "pre"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "injectedScript.ts:1087-1098",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1087-L1098"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "a-listener-is-installed-before-i",
          "title": "A listener is installed before input",
          "text": "Playwright adds a listener to the page, then sends mouse input at the calculated point.",
          "show": [
            "listener",
            "mouse"
          ],
          "current": [
            "listener",
            "mouse"
          ],
          "edges": [
            "install",
            "input"
          ],
          "defs": [
            "listener",
            "mouse"
          ],
          "sources": [
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "injectedScript.ts:1175-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1175-L1198"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "input.ts:263-289",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/input.ts#L263-L289"
            },
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "dom.ts:551-558",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L551-L558"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-first-relevant-event-checks",
          "title": "The first relevant event checks the hit again",
          "text": "If it misses, the listener blocks that event and the ones after it.",
          "show": [
            "event",
            "block"
          ],
          "current": [
            "event",
            "block",
            "event"
          ],
          "edges": [
            "event",
            "miss"
          ],
          "defs": [
            "event",
            "block"
          ],
          "code": "interceptor",
          "sources": [
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "injectedScript.ts:1098-1115",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1098-L1115"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "playwright-reads-the-result-afte",
          "title": "Playwright reads the result after input",
          "text": "If the listener reports a miss, Playwright retries the click.",
          "show": [
            "result",
            "retry"
          ],
          "current": [
            "result",
            "retry"
          ],
          "edges": [
            "collect",
            "blocked",
            "retry"
          ],
          "defs": [
            "result",
            "retry"
          ],
          "sources": [
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "dom.ts:368-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L368-L370"
            },
            {
              "label": "dom.ts:501-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L501-L503"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        }
      ]
    },
    {
      "id": "inner",
      "label": "Inner span",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "the-first-attempt-scrolls-with-t",
          "title": "The first attempt scrolls with the browser's own method.",
          "text": "The first attempt scrolls with the browser's own method.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "scroll"
          ],
          "edges": [
            "request"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:409-420",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L409-L420"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-point-is-the-middle-of-the-b",
          "title": "The point is the middle of the button's visible box.",
          "text": "The point is the middle of the button's visible box.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "point"
          ],
          "edges": [
            "point"
          ],
          "defs": [],
          "code": "point",
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:256-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L306"
            },
            {
              "label": "dom.ts:309-325",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L309-L325"
            },
            {
              "label": "dom.ts:256-261",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L261"
            },
            {
              "label": "dom.ts:276-290",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L276-L290"
            },
            {
              "label": "dom.ts:291-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L291-L306"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "it-hits-a-span-inside-the-button",
          "title": "It hits a span inside the button. That counts as the button.",
          "text": "It hits a span inside the button. That counts as the button.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "pre"
          ],
          "edges": [
            "frames",
            "pre"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "injectedScript.ts:1087-1098",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1087-L1098"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "dom.ts:967-985",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-first-mouse-event-checks-the",
          "title": "The first mouse event checks the hit again. It passes.",
          "text": "The first mouse event checks the hit again. It passes.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "event"
          ],
          "edges": [
            "install",
            "input",
            "event"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  performing click action"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "input.ts:263-289",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/input.ts#L263-L289"
            },
            {
              "label": "dom.ts:551-558",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L551-L558"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-click-is-done",
          "title": "The click is done.",
          "text": "The click is done.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "result"
          ],
          "edges": [
            "collect"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  performing click action",
            "  click action done"
          ],
          "sources": [
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "scroll",
          "step": "the-first-attempt-scrolls-with-t",
          "log": [
            "  scrolling into view if needed"
          ],
          "edge": "request"
        },
        {
          "node": "point",
          "step": "the-point-is-the-middle-of-the-b",
          "log": [
            "  done scrolling"
          ],
          "edge": "point"
        },
        {
          "node": "frames",
          "step": "it-hits-a-span-inside-the-button",
          "log": [],
          "edge": "frames"
        },
        {
          "node": "pre",
          "step": "it-hits-a-span-inside-the-button",
          "log": [],
          "edge": "pre"
        },
        {
          "node": "listener",
          "step": "the-first-mouse-event-checks-the",
          "log": [],
          "edge": "install"
        },
        {
          "node": "mouse",
          "step": "the-first-mouse-event-checks-the",
          "log": [],
          "edge": "input"
        },
        {
          "node": "event",
          "step": "the-first-mouse-event-checks-the",
          "log": [
            "  performing click action"
          ],
          "edge": "event"
        },
        {
          "node": "result",
          "step": "the-click-is-done",
          "log": [
            "  click action done"
          ],
          "edge": "collect"
        }
      ]
    },
    {
      "id": "sticky",
      "label": "Sticky header",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "browser-scrolling-leaves-the-but",
          "title": "Browser scrolling leaves the button under the sticky header.",
          "text": "Browser scrolling leaves the button under the sticky header.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "scroll"
          ],
          "edges": [
            "request"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:409-420",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L409-L420"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-point-hits-the-header-not-th",
          "title": "The point hits the header, not the button.",
          "text": "The point hits the header, not the button.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "pre"
          ],
          "edges": [
            "point",
            "frames",
            "pre"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  <nav class=\"sticky\"></nav> intercepts pointer events"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "injectedScript.ts:1087-1098",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1087-L1098"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:256-261",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L261"
            },
            {
              "label": "dom.ts:276-290",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L276-L290"
            },
            {
              "label": "dom.ts:291-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L291-L306"
            },
            {
              "label": "dom.ts:309-325",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L309-L325"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "dom.ts:967-985",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-next-attempt-aligns-the-butt",
          "title": "The next attempt aligns the button to the end of the viewport.",
          "text": "The next attempt aligns the button to the end of the viewport.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "scroll"
          ],
          "edges": [
            "again"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  <nav class=\"sticky\"></nav> intercepts pointer events",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable",
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:432-450",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L450"
            },
            {
              "label": "dom.ts:432-450",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L450"
            },
            {
              "label": "dom.ts:368-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L368-L370"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "injectedScript.ts:1153-1158",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1153-L1158"
            },
            {
              "label": "dom.ts:468-478",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L468-L478"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "now-the-point-hits-the-button",
          "title": "Now the point hits the button.",
          "text": "Now the point hits the button.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "pre"
          ],
          "edges": [
            "point",
            "frames",
            "pre"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  <nav class=\"sticky\"></nav> intercepts pointer events",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable",
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "injectedScript.ts:1087-1098",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1087-L1098"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:256-261",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L261"
            },
            {
              "label": "dom.ts:276-290",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L276-L290"
            },
            {
              "label": "dom.ts:291-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L291-L306"
            },
            {
              "label": "dom.ts:309-325",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L309-L325"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "dom.ts:967-985",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
            },
            {
              "label": "dom.ts:432-450",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L450"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-first-event-hits-the-button",
          "title": "The first event hits the button too. The click is done.",
          "text": "The first event hits the button too. The click is done.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "result"
          ],
          "edges": [
            "install",
            "input",
            "event",
            "collect"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  <nav class=\"sticky\"></nav> intercepts pointer events",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable",
            "  scrolling into view if needed",
            "  done scrolling",
            "  performing click action",
            "  click action done"
          ],
          "sources": [
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "input.ts:263-289",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/input.ts#L263-L289"
            },
            {
              "label": "dom.ts:551-558",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L551-L558"
            },
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:432-450",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L450"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "scroll",
          "step": "browser-scrolling-leaves-the-but",
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "edge": "request"
        },
        {
          "node": "point",
          "step": "the-point-hits-the-header-not-th",
          "log": [],
          "edge": "point"
        },
        {
          "node": "frames",
          "step": "the-point-hits-the-header-not-th",
          "log": [],
          "edge": "frames"
        },
        {
          "node": "pre",
          "step": "the-point-hits-the-header-not-th",
          "log": [
            "  <nav class=\"sticky\"></nav> intercepts pointer events"
          ],
          "edge": "pre",
          "fail": true
        },
        {
          "node": "retry",
          "step": "the-next-attempt-aligns-the-butt",
          "log": []
        },
        {
          "node": "scroll",
          "step": "the-next-attempt-aligns-the-butt",
          "log": [
            "retrying click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable",
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "edge": "again"
        },
        {
          "node": "point",
          "step": "now-the-point-hits-the-button",
          "log": [],
          "edge": "point"
        },
        {
          "node": "frames",
          "step": "now-the-point-hits-the-button",
          "log": [],
          "edge": "frames"
        },
        {
          "node": "pre",
          "step": "now-the-point-hits-the-button",
          "log": [],
          "edge": "pre"
        },
        {
          "node": "listener",
          "step": "the-first-event-hits-the-button",
          "log": [],
          "edge": "install"
        },
        {
          "node": "mouse",
          "step": "the-first-event-hits-the-button",
          "log": [],
          "edge": "input"
        },
        {
          "node": "event",
          "step": "the-first-event-hits-the-button",
          "log": [],
          "edge": "event"
        },
        {
          "node": "result",
          "step": "the-first-event-hits-the-button",
          "log": [
            "  performing click action",
            "  click action done"
          ],
          "edge": "collect"
        }
      ],
      "repeatBadges": [
        {
          "edge": "point",
          "step": "now-the-point-hits-the-button",
          "at": [
            369.8713333333333,
            262.6
          ]
        },
        {
          "edge": "frames",
          "step": "now-the-point-hits-the-button",
          "at": [
            374.73499999999996,
            537.075
          ]
        },
        {
          "edge": "pre",
          "step": "now-the-point-hits-the-button",
          "at": [
            374.73499999999996,
            713.6750000000001
          ]
        }
      ]
    },
    {
      "id": "late",
      "label": "Late overlay",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "before-the-input-the-point-hits",
          "title": "Before the input, the point hits the button.",
          "text": "Before the input, the point hits the button.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "pre"
          ],
          "edges": [
            "request",
            "point",
            "frames",
            "pre"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "injectedScript.ts:1087-1098",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1087-L1098"
            },
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:409-420",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L409-L420"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:256-261",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L256-L261"
            },
            {
              "label": "dom.ts:276-290",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L276-L290"
            },
            {
              "label": "dom.ts:291-306",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L291-L306"
            },
            {
              "label": "dom.ts:309-325",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L309-L325"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "dom.ts:967-985",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "a-toast-appears-over-the-button",
          "title": "A toast appears over the button before the mouse event.",
          "text": "A toast appears over the button before the mouse event.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "pre"
          ],
          "edges": [],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1098-1115",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1098-L1115"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "the-first-event-hits-the-toast-p",
          "title": "The first event hits the toast. Playwright blocks the event.",
          "text": "The first event hits the toast. Playwright blocks the event.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "block"
          ],
          "edges": [
            "install",
            "input",
            "event",
            "miss"
          ],
          "defs": [],
          "code": "interceptor",
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  performing click action"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "dom.ts:465-480",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L465-L480"
            },
            {
              "label": "injectedScript.ts:1148-1159",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "input.ts:263-289",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/input.ts#L263-L289"
            },
            {
              "label": "dom.ts:551-558",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L551-L558"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            },
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        },
        {
          "id": "after-the-input-playwright-reads",
          "title": "After the input, Playwright reads the result and tries again.",
          "text": "After the input, Playwright reads the result and tries again.",
          "show": [
            "call",
            "scroll",
            "point",
            "frames",
            "pre",
            "listener",
            "mouse",
            "event",
            "block",
            "result",
            "retry"
          ],
          "current": [
            "retry"
          ],
          "edges": [
            "blocked",
            "retry"
          ],
          "defs": [],
          "log": [
            "  scrolling into view if needed",
            "  done scrolling",
            "  performing click action",
            "  <div class=\"toast\"></div> intercepts pointer events",
            "retrying click action"
          ],
          "sources": [
            {
              "label": "dom.ts:383-397",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "dom.ts:482-506",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
            },
            {
              "label": "dom.ts:333-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L370"
            },
            {
              "label": "injectedScript.ts:1186-1198",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
            },
            {
              "label": "dom.ts:482-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L503"
            },
            {
              "label": "dom.ts:368-370",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L368-L370"
            },
            {
              "label": "dom.ts:501-503",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L501-L503"
            },
            {
              "label": "dom.ts:446-456",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
            }
          ],
          "deeper": [
            {
              "title": "2.1 Two loops behind every click",
              "href": "/2-actions/2-1-two-loops/"
            },
            {
              "title": "2.5 Force skips safeguards, but still needs a click point",
              "href": "/2-actions/2-5-what-force-skips/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "scroll",
          "step": "before-the-input-the-point-hits",
          "log": [],
          "edge": "request"
        },
        {
          "node": "point",
          "step": "before-the-input-the-point-hits",
          "log": [],
          "edge": "point"
        },
        {
          "node": "frames",
          "step": "before-the-input-the-point-hits",
          "log": [],
          "edge": "frames"
        },
        {
          "node": "pre",
          "step": "before-the-input-the-point-hits",
          "log": [
            "  scrolling into view if needed",
            "  done scrolling"
          ],
          "edge": "pre"
        },
        {
          "node": "pre",
          "step": "a-toast-appears-over-the-button",
          "log": []
        },
        {
          "node": "listener",
          "step": "the-first-event-hits-the-toast-p",
          "log": [],
          "edge": "install"
        },
        {
          "node": "mouse",
          "step": "the-first-event-hits-the-toast-p",
          "log": [],
          "edge": "input"
        },
        {
          "node": "event",
          "step": "the-first-event-hits-the-toast-p",
          "log": [],
          "edge": "event",
          "fail": true
        },
        {
          "node": "block",
          "step": "the-first-event-hits-the-toast-p",
          "log": [
            "  performing click action"
          ],
          "edge": "miss"
        },
        {
          "node": "result",
          "step": "after-the-input-playwright-reads",
          "log": [],
          "edge": "blocked"
        },
        {
          "node": "retry",
          "step": "after-the-input-playwright-reads",
          "log": [
            "  <div class=\"toast\"></div> intercepts pointer events",
            "retrying click action"
          ],
          "edge": "retry"
        }
      ]
    }
  ],
  "definitions": {
    "scroll": {
      "term": "scroll alignment",
      "text": "Retries cycle browser scrolling, end, center and start alignments."
    },
    "point": {
      "term": "calculate click point",
      "text": "The action point is calculated after scrolling."
    },
    "frames": {
      "term": "check containing iframes",
      "text": "Each containing iframe is checked on the way."
    },
    "pre": {
      "term": "preliminary hit check",
      "text": "The point must hit the target or a descendant."
    },
    "listener": {
      "term": "install event listener",
      "text": "A listener checks the first relevant event before allowing input through."
    },
    "mouse": {
      "term": "mouse move · down · up",
      "text": "Mouse input moves, presses and releases at the calculated point."
    },
    "event": {
      "term": "first-event hit check",
      "text": "The first relevant event decides the listener’s hit result."
    },
    "block": {
      "term": "block missed events",
      "text": "A miss blocks the event and subsequent events."
    },
    "result": {
      "term": "collect hit result",
      "text": "The server reads the listener result after input."
    },
    "retry": {
      "term": "retry click action",
      "text": "A hit-target failure retries the click."
    }
  },
  "code": {
    "point": {
      "title": "In your test · action point",
      "lines": [
        "// ✗ Reuse fixed screen coordinates",
        "await page.mouse.click(640, 480);",
        "// ✓ Calculate from the current element",
        "await button.click();"
      ]
    },
    "interceptor": {
      "title": "Inside Playwright · injectedScript.ts",
      "source": {
        "label": "injectedScript.ts:1191-1191",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1191"
      },
      "lines": [
        "if (result === undefined && point)",
        "  result = this.expectHitTarget({ x: point.clientX, y: point.clientY }, element);",
        "",
        "if (blockAllEvents || (result !== 'done' && result !== undefined)) {",
        "  event.preventDefault();",
        "  event.stopPropagation();",
        "  event.stopImmediatePropagation();",
        "}"
      ]
    }
  },
  "conceptScenario": "how",
  "concepts": [
    {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "items": [
        {
          "definition": "scroll",
          "short": "Retries cycle browser scrolling, end, center and start alignments.",
          "nodes": [
            "scroll"
          ],
          "step": {
            "step": "you-call-click"
          },
          "source": {
            "label": "dom.ts:383-397",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L383-L397"
          }
        },
        {
          "definition": "point",
          "short": "The action point is calculated after scrolling.",
          "nodes": [
            "point"
          ],
          "step": {
            "step": "the-point-is-calculated-after-sc"
          },
          "source": {
            "label": "dom.ts:446-456",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L446-L456"
          }
        },
        {
          "definition": "frames",
          "short": "Each containing iframe is checked on the way.",
          "nodes": [
            "frames"
          ],
          "step": {
            "step": "containing-iframes-are-checked"
          },
          "source": {
            "label": "dom.ts:967-985",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L967-L985"
          }
        }
      ]
    },
    {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "items": [
        {
          "definition": "pre",
          "short": "The point must hit the target or a descendant.",
          "nodes": [
            "pre"
          ],
          "step": {
            "step": "the-point-must-hit-the-target-or"
          },
          "source": {
            "label": "injectedScript.ts:1148-1159",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1148-L1159"
          }
        },
        {
          "definition": "listener",
          "short": "A listener checks the first relevant event before allowing input through.",
          "nodes": [
            "listener"
          ],
          "step": {
            "step": "a-listener-is-installed-before-i"
          },
          "source": {
            "label": "injectedScript.ts:1186-1198",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
          }
        }
      ]
    },
    {
      "label": "BROWSER",
      "layer": "browser",
      "items": [
        {
          "definition": "mouse",
          "short": "Mouse input moves, presses and releases at the calculated point.",
          "nodes": [
            "mouse"
          ],
          "step": {
            "step": "a-listener-is-installed-before-i"
          },
          "source": {
            "label": "input.ts:263-289",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/input.ts#L263-L289"
          }
        }
      ]
    },
    {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "items": [
        {
          "definition": "event",
          "short": "The first relevant event decides the listener’s hit result.",
          "nodes": [
            "event"
          ],
          "step": {
            "step": "the-first-relevant-event-checks"
          },
          "source": {
            "label": "injectedScript.ts:1186-1198",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
          }
        },
        {
          "definition": "block",
          "short": "A miss blocks the event and subsequent events.",
          "nodes": [
            "block"
          ],
          "step": {
            "step": "the-first-relevant-event-checks"
          },
          "source": {
            "label": "injectedScript.ts:1186-1198",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L1186-L1198"
          }
        }
      ]
    },
    {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "items": [
        {
          "definition": "result",
          "short": "The server reads the listener result after input.",
          "nodes": [
            "result"
          ],
          "step": {
            "step": "playwright-reads-the-result-afte"
          },
          "source": {
            "label": "dom.ts:482-506",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L482-L506"
          }
        },
        {
          "definition": "retry",
          "short": "A hit-target failure retries the click.",
          "nodes": [
            "retry"
          ],
          "step": {
            "step": "retries-change-the-scroll-alignm"
          },
          "source": {
            "label": "dom.ts:368-370",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L368-L370"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "scroll",
      "retry"
    ],
    "2": [
      "point"
    ],
    "3": [
      "frames",
      "pre"
    ],
    "4": [
      "listener",
      "event",
      "block",
      "result"
    ]
  },
  "deeper": [
    {
      "title": "2.1 Two loops behind every click",
      "href": "/2-actions/2-1-two-loops/",
      "why": "How a failed hit check retries the click."
    },
    {
      "title": "2.5 Force skips safeguards, but still needs a click point",
      "href": "/2-actions/2-5-what-force-skips/",
      "why": "Which safeguards force skips."
    }
  ],
  "viewBox": [
    577.871,
    1793.3999999999999
  ],
  "measurement": {
    "name": "font-table",
    "labels": {
      "request": {
        "width": 88.49399999999999,
        "height": 12.6
      },
      "point": {
        "width": 94.81499999999998,
        "height": 12.6
      },
      "frames": {
        "width": 113.77799999999998,
        "height": 12.6
      },
      "pre": {
        "width": 75.85199999999999,
        "height": 12.6
      },
      "install": {
        "width": 139.06199999999998,
        "height": 12.6
      },
      "input": {
        "width": 69.53099999999999,
        "height": 12.6
      },
      "event": {
        "width": 126.41999999999997,
        "height": 12.6
      },
      "miss": {
        "width": 69.53099999999999,
        "height": 12.6
      },
      "collect": {
        "width": 101.13599999999998,
        "height": 12.6
      },
      "blocked": {
        "width": 88.49399999999999,
        "height": 12.6
      },
      "retry": {
        "width": 75.85199999999999,
        "height": 12.6
      },
      "again": {
        "width": 132.74099999999999,
        "height": 12.6
      }
    }
  }
}
