{
  "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": 399.50649999999996
    },
    "server": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 116,
      "h": 297.20000000000005,
      "x": 16,
      "w": 399.50649999999996
    },
    "page": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 441.20000000000005,
      "h": 184.60000000000014,
      "x": 16,
      "w": 399.50649999999996
    },
    "browser": {
      "label": "BROWSER",
      "layer": "browser",
      "y": 653.8000000000002,
      "h": 72,
      "x": 16,
      "w": 399.50649999999996
    },
    "events": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 753.8000000000002,
      "h": 184.60000000000002,
      "x": 16,
      "w": 399.50649999999996
    },
    "result": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 966.4000000000002,
      "h": 184.5999999999998,
      "x": 16,
      "w": 399.50649999999996
    }
  },
  "frames": {},
  "nodes": {
    "call": {
      "label": "locator.click()",
      "layer": "client",
      "lane": "test",
      "box": [
        83.06799999999998,
        40,
        109,
        36
      ]
    },
    "scroll": {
      "label": "scroll alignment",
      "layer": "server",
      "lane": "server",
      "box": [
        75.06799999999998,
        140,
        125,
        36
      ]
    },
    "point": {
      "label": "calculate click point",
      "layer": "server",
      "lane": "server",
      "box": [
        145.43849999999998,
        252.6,
        149,
        36
      ]
    },
    "frames": {
      "label": "check containing iframes",
      "layer": "server",
      "lane": "server",
      "box": [
        128.93849999999998,
        365.20000000000005,
        182,
        36
      ]
    },
    "pre": {
      "label": "preliminary hit check",
      "layer": "page",
      "lane": "page",
      "box": [
        141.43849999999998,
        465.20000000000005,
        157,
        36
      ]
    },
    "listener": {
      "label": "install event listener",
      "layer": "page",
      "lane": "page",
      "box": [
        143.93849999999998,
        577.8000000000002,
        152,
        36
      ]
    },
    "mouse": {
      "label": "mouse move · down · up",
      "layer": "browser",
      "lane": "browser",
      "box": [
        130.43849999999998,
        677.8000000000002,
        179,
        36
      ]
    },
    "event": {
      "label": "first-event hit check",
      "layer": "page",
      "lane": "events",
      "box": [
        144.93849999999998,
        777.8000000000002,
        150,
        36
      ]
    },
    "block": {
      "label": "block missed events",
      "layer": "page",
      "lane": "events",
      "box": [
        251.50649999999996,
        890.4000000000002,
        152,
        36
      ]
    },
    "result": {
      "label": "collect hit result",
      "layer": "server",
      "lane": "result",
      "box": [
        157.43849999999998,
        990.4000000000002,
        125,
        36
      ]
    },
    "retry": {
      "label": "retry click action",
      "layer": "server",
      "lane": "result",
      "box": [
        73.06799999999998,
        1103,
        129,
        36
      ]
    }
  },
  "edges": {
    "request": {
      "from": "call",
      "to": "scroll",
      "label": {
        "at": [
          37.074000000000005,
          96.2
        ],
        "text": "starts attempt"
      },
      "path": "M137.56799999999998,76 L137.56799999999998,108 L137.56799999999998,108 L137.56799999999998,140",
      "badge": [
        137.56799999999998,
        108
      ]
    },
    "point": {
      "from": "scroll",
      "to": "point",
      "label": {
        "at": [
          231.93849999999995,
          218.5
        ],
        "text": "after scrolling"
      },
      "path": "M163.9031509769094,176 L219.93849999999998,214.3 L219.93849999999998,252.6",
      "badge": [
        207.73071401264926,
        205.95601336536933
      ]
    },
    "frames": {
      "from": "point",
      "to": "frames",
      "label": {
        "at": [
          231.9385,
          331.09999999999997
        ],
        "text": "checks frame chain"
      },
      "path": "M219.93849999999998,288.6 L219.93849999999998,326.9 L219.93849999999998,365.20000000000005",
      "badge": [
        219.93849999999998,
        326.90000000000003
      ]
    },
    "pre": {
      "from": "frames",
      "to": "pre",
      "label": {
        "at": [
          143.17305439013546,
          416.80779881161897
        ],
        "text": "checks point"
      },
      "path": "M219.93849999999998,401.20000000000005 L219.93849999999998,433.20000000000005 L219.93849999999998,433.20000000000005 L219.93849999999998,465.20000000000005",
      "badge": [
        219.93849999999998,
        433.20000000000005
      ]
    },
    "install": {
      "from": "pre",
      "to": "listener",
      "label": {
        "at": [
          231.93849999999998,
          543.7
        ],
        "text": "if target / descendant"
      },
      "path": "M219.93849999999998,501.2000000000001 L219.93849999999998,539.5 L219.93849999999998,577.8000000000002",
      "badge": [
        219.93849999999998,
        539.5000000000001
      ]
    },
    "input": {
      "from": "listener",
      "to": "mouse",
      "label": {
        "at": [
          138.40749999999997,
          634.0000000000002
        ],
        "text": "sends input"
      },
      "path": "M219.93849999999998,613.8000000000002 L219.93849999999998,645.8000000000002 L219.93849999999998,645.8000000000002 L219.93849999999998,677.8000000000002",
      "badge": [
        219.93849999999998,
        645.8000000000002
      ]
    },
    "event": {
      "from": "mouse",
      "to": "event",
      "label": {
        "at": [
          223.93849999999998,
          732.3000000000002
        ],
        "text": "first relevant event"
      },
      "path": "M219.93849999999998,713.8000000000002 L219.93849999999998,745.8000000000002 L219.93849999999998,745.8000000000002 L219.93849999999998,777.8000000000002",
      "badge": [
        219.93849999999998,
        745.8000000000002
      ]
    },
    "miss": {
      "from": "event",
      "to": "block",
      "label": {
        "at": [
          339.50649999999996,
          856.3000000000002
        ],
        "text": "miss blocks"
      },
      "path": "M254.32969005328596,813.8000000000002 L327.50649999999996,852.1000000000001 L327.50649999999996,890.4000000000002",
      "badge": [
        307.88469469510517,
        841.8301461525216
      ]
    },
    "collect": {
      "from": "event",
      "to": "result",
      "label": {
        "at": [
          223.93849999999998,
          982.8250000000003
        ],
        "text": "read after input"
      },
      "path": "M219.93849999999998,813.8000000000002 L219.93849999999998,902.1000000000001 L219.93849999999998,902.1000000000001 L219.93849999999998,990.4000000000002",
      "badge": [
        219.93849999999998,
        902.1000000000001
      ]
    },
    "blocked": {
      "from": "block",
      "to": "result",
      "label": {
        "at": [
          229.47549999999998,
          944.3000000000003
        ],
        "text": "blocked result"
      },
      "path": "M327.50649999999996,926.4000000000002 L327.50649999999996,958.4000000000002 L219.93849999999998,958.4000000000002 L219.93849999999998,990.4000000000002",
      "badge": [
        273.72249999999997,
        958.4000000000002
      ]
    },
    "retry": {
      "from": "result",
      "to": "retry",
      "label": {
        "at": [
          231.93849999999998,
          1068.9000000000003
        ],
        "text": "miss retries"
      },
      "path": "M219.93849999999998,1026.4 L219.93849999999998,1064.7000000000003 L163.90315097690942,1103",
      "badge": [
        207.73071401264934,
        1073.0439866346308
      ]
    },
    "again": {
      "from": "retry",
      "to": "scroll",
      "label": {
        "at": [
          1.5679999999999836,
          875.45
        ],
        "text": "next scroll alignment"
      },
      "path": "M137.56799999999998,1103 L137.56799999999998,639.5 L137.56799999999998,639.5 L137.56799999999998,176",
      "badge": [
        137.56799999999998,
        653.984375
      ]
    }
  },
  "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": [
            207.73071401264926,
            225.95601336536933
          ]
        },
        {
          "edge": "frames",
          "step": "now-the-point-hits-the-button",
          "at": [
            219.93849999999998,
            346.90000000000003
          ]
        },
        {
          "edge": "pre",
          "step": "now-the-point-hits-the-button",
          "at": [
            239.93849999999998,
            433.20000000000005
          ]
        }
      ]
    },
    {
      "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": [
    431.50649999999996,
    1167
  ],
  "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
      }
    }
  }
}
