{
  "format": 3,
  "id": "2.3",
  "title": "Concept map: stable is a count of equal boxes",
  "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": 487.5
    },
    "server": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 192.6,
      "h": 72,
      "x": 16,
      "w": 487.5
    },
    "page": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 369.20000000000005,
      "h": 1231.6,
      "x": 16,
      "w": 487.5
    },
    "continuation": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 1628.8,
      "h": 72,
      "x": 16,
      "w": 487.5
    },
    "browser": {
      "label": "BROWSER",
      "layer": "browser",
      "y": 1728.8,
      "h": 72,
      "x": 16,
      "w": 487.5
    }
  },
  "frames": {
    "stability": {
      "label": "STABILITY CHECK",
      "showWith": [
        "stable"
      ],
      "box": [
        138.91366666666667,
        365.20000000000005,
        128.265,
        76
      ]
    }
  },
  "nodes": {
    "call": {
      "label": "locator.click()",
      "layer": "client",
      "lane": "test",
      "box": [
        62.833333333333336,
        40,
        109,
        36
      ]
    },
    "retry": {
      "label": "retrying click action",
      "layer": "server",
      "lane": "server",
      "box": [
        43.333333333333336,
        216.6,
        148,
        36
      ]
    },
    "stable": {
      "label": "stable",
      "layer": "page",
      "lane": "page",
      "box": [
        150.91366666666667,
        393.20000000000005,
        63,
        36
      ]
    },
    "frame": {
      "label": "animation frames",
      "layer": "browser",
      "lane": "browser",
      "box": [
        356.5,
        1752.8,
        135,
        36
      ]
    },
    "box": {
      "label": "measure the box",
      "layer": "page",
      "lane": "page",
      "box": [
        116.91366666666667,
        569.8000000000001,
        131,
        36
      ]
    },
    "stored": {
      "label": "store first box",
      "layer": "page",
      "lane": "page",
      "box": [
        104.58033333333333,
        746.4000000000001,
        112,
        36
      ]
    },
    "compare": {
      "label": "compare next box",
      "layer": "page",
      "lane": "page",
      "box": [
        91.58033333333333,
        923.0000000000001,
        138,
        36
      ]
    },
    "count": {
      "label": "equal comparison count",
      "layer": "page",
      "lane": "page",
      "box": [
        217,
        1099.6000000000001,
        175,
        36
      ]
    },
    "changed": {
      "label": "element is not stable",
      "layer": "page",
      "lane": "page",
      "box": [
        28,
        1099.6000000000001,
        157,
        36
      ]
    },
    "visible": {
      "label": "visible",
      "layer": "page",
      "lane": "page",
      "box": [
        272.5,
        1276.2,
        64,
        36
      ]
    },
    "enabled": {
      "label": "enabled",
      "layer": "page",
      "lane": "page",
      "box": [
        267,
        1452.8,
        75,
        36
      ]
    },
    "click": {
      "label": "scroll · hit target · click",
      "layer": "server",
      "lane": "continuation",
      "box": [
        220.5,
        1652.8,
        168,
        36
      ]
    },
    "inert": {
      "label": "not inert",
      "layer": "page",
      "lane": "page",
      "box": [
        265.5,
        1552.8,
        78,
        36
      ]
    }
  },
  "edges": {
    "request": {
      "from": "call",
      "to": "retry",
      "label": {
        "at": [
          64.76533333333336,
          150.5
        ],
        "text": "requests"
      },
      "path": "M117.33333333333334,76 L117.33333333333334,216.6",
      "badge": [
        117.33333333333334,
        163.875
      ]
    },
    "check": {
      "from": "retry",
      "to": "stable",
      "label": {
        "at": [
          185.91366666666667,
          327.1
        ],
        "text": "checks stable first"
      },
      "path": "M154.33333333333334,252.6 L154.33333333333334,262.6 L182.91366666666667,262.6 L182.91366666666667,339.20000000000005 L192.91366666666667,339.20000000000005 L192.91366666666667,393.20000000000005",
      "badge": [
        182.91366666666667,
        300.90000000000003
      ]
    },
    "measure": {
      "from": "stable",
      "to": "box",
      "label": {
        "at": [
          185.41366666666667,
          503.70000000000005
        ],
        "text": "measure"
      },
      "path": "M182.41366666666667,429.20000000000005 L182.41366666666667,569.8000000000001",
      "badge": [
        182.41366666666667,
        517.075
      ]
    },
    "first": {
      "from": "box",
      "to": "stored",
      "label": {
        "at": [
          101.69133333333333,
          680.3000000000001
        ],
        "text": "first box"
      },
      "path": "M160.58033333333333,605.8000000000001 L160.58033333333333,746.4000000000001",
      "badge": [
        160.58033333333333,
        693.6750000000001
      ]
    },
    "next": {
      "from": "stored",
      "to": "compare",
      "label": {
        "at": [
          108.01233333333334,
          856.9000000000001
        ],
        "text": "next box"
      },
      "path": "M160.58033333333333,782.4000000000001 L160.58033333333333,923.0000000000001",
      "badge": [
        160.58033333333333,
        870.2750000000001
      ]
    },
    "equal": {
      "from": "compare",
      "to": "count",
      "label": {
        "at": [
          270.895,
          1033.5000000000002
        ],
        "text": "equal"
      },
      "path": "M183.58033333333333,959.0000000000001 L183.58033333333333,969.0000000000001 L304.5,969.0000000000001 L304.5,1099.6000000000001",
      "badge": [
        304.3401666666667,
        969.0000000000001
      ]
    },
    "changed": {
      "from": "compare",
      "to": "changed",
      "label": {
        "at": [
          91.33333333333334,
          1033.5000000000002
        ],
        "text": "changed"
      },
      "path": "M137.58033333333333,959.0000000000001 L137.58033333333333,1045.6000000000001 L132.66666666666669,1045.6000000000001 L132.66666666666669,1099.6000000000001",
      "badge": [
        137.58033333333333,
        1045.6000000000001
      ]
    },
    "reached": {
      "from": "count",
      "to": "visible",
      "label": {
        "at": [
          220.327,
          1210.1000000000001
        ],
        "text": "count reached"
      },
      "path": "M304.5,1135.6000000000001 L304.5,1276.2",
      "badge": [
        304.5,
        1223.4750000000001
      ]
    },
    "then": {
      "from": "visible",
      "to": "enabled",
      "label": {
        "at": [
          277.216,
          1386.7
        ],
        "text": "then"
      },
      "path": "M304.5,1312.2 L304.5,1452.8",
      "badge": [
        304.5,
        1400.075
      ]
    },
    "click": {
      "from": "inert",
      "to": "click",
      "path": "M304.5,1588.8 L304.5,1652.8",
      "badge": [
        304.5,
        1620.8
      ]
    },
    "retry": {
      "from": "changed",
      "to": "retry",
      "label": {
        "at": [
          46.72833333333334,
          680.3000000000001
        ],
        "text": "retry"
      },
      "path": "M80.33333333333334,1099.6000000000001 L80.33333333333334,252.6",
      "badge": [
        80.33333333333334,
        702.5687500000001
      ]
    },
    "fresh": {
      "from": "retry",
      "to": "stable",
      "label": {
        "at": [
          113.0246666666667,
          327.1
        ],
        "text": "new check"
      },
      "path": "M117.33333333333334,252.6 L117.33333333333334,272.6 L171.91366666666667,272.6 L171.91366666666667,393.20000000000005",
      "badge": [
        163.91366666666667,
        295.60983333333337
      ]
    },
    "nextframe": {
      "from": "frame",
      "to": "box",
      "label": {
        "at": [
          427,
          1121.8000000000002
        ],
        "text": "next frame"
      },
      "path": "M424,1752.8 L424,615.8000000000001 L204.247,615.8000000000001 L204.247,605.8000000000001",
      "badge": [
        424,
        1069.4234999999999
      ]
    },
    "enabled_inert": {
      "from": "enabled",
      "to": "inert",
      "path": "M304.5,1488.8 L304.5,1552.8",
      "badge": [
        304.5,
        1520.8
      ]
    }
  },
  "scenarios": [
    {
      "id": "how",
      "label": "How stable is measured",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "you-call-click",
          "title": "You call click()",
          "text": "Before a click, Playwright checks stable, visible, enabled and not inert, in that order.",
          "show": [
            "call"
          ],
          "current": [
            "call"
          ],
          "edges": [],
          "defs": [
            "click"
          ],
          "sources": [
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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-code-checks-stable-first",
          "title": "The code checks stable first",
          "text": "If the element still moves, visible, enabled and not inert are not checked in that attempt.",
          "show": [
            "retry",
            "stable"
          ],
          "current": [
            "stable"
          ],
          "edges": [
            "request",
            "check"
          ],
          "defs": [
            "stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "injectedScript.ts:746-757",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L746-L757"
            }
          ],
          "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": "animation-frames-drive-the-check",
          "title": "Animation frames drive the check",
          "text": "Playwright measures the element’s box on animation frames.",
          "show": [
            "frame",
            "box"
          ],
          "current": [
            "frame",
            "box"
          ],
          "edges": [
            "measure",
            "nextframe"
          ],
          "defs": [
            "frame",
            "box"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:746-757",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L746-L757"
            },
            {
              "label": "injectedScript.ts:729-730",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
            }
          ],
          "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-box-is-only-stored",
          "title": "The first box is only stored",
          "text": "The check starts with no stored box and a zero comparison count.",
          "show": [
            "stored"
          ],
          "current": [
            "stored"
          ],
          "edges": [
            "first"
          ],
          "defs": [
            "stored"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:712-716",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "compare-the-next-box",
          "title": "Compare the next box",
          "text": "The box is the top, left, width and height. A changed box fails at once.",
          "show": [
            "compare",
            "changed"
          ],
          "current": [
            "compare",
            "changed"
          ],
          "edges": [
            "next",
            "changed"
          ],
          "defs": [
            "compare"
          ],
          "code": "compare",
          "sources": [
            {
              "label": "injectedScript.ts:729-730",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "equal-boxes-add-to-the-count",
          "title": "Equal boxes add to the count",
          "text": "By default, Chromium, Firefox and WebKit need one equal comparison: two equal boxes in a row.",
          "show": [
            "count",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "count",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "edges": [
            "equal",
            "reached",
            "then",
            "click",
            "enabled_inert"
          ],
          "defs": [
            "count"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            },
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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-retry-starts-a-new-check",
          "title": "A retry starts a new check",
          "text": "The call log says element is not stable, and the click tries again. The new attempt has no stored box.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "changed",
            "retry",
            "stable"
          ],
          "edges": [
            "retry",
            "fresh"
          ],
          "defs": [
            "retry"
          ],
          "code": "animations",
          "sources": [
            {
              "label": "dom.ts:372-379",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L372-L379"
            },
            {
              "label": "dom.ts:333-347",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L347"
            },
            {
              "label": "injectedScript.ts:712-716",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
            },
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            }
          ],
          "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": "one-comparison-is-the-default",
          "title": "One comparison is the default",
          "text": "Chromium, Firefox and WebKit need one equal comparison by default. The first box is only stored, so this needs two equal boxes.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "count",
            "frame"
          ],
          "edges": [],
          "defs": [
            "count"
          ],
          "sources": [
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "still",
      "label": "Still",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": false,
        "nodeBadges": false,
        "log": "incremental"
      },
      "whole": {
        "title": "Still",
        "text": "The dot follows this scenario across the map, and the call log fills in as it goes."
      },
      "steps": [
        {
          "id": "still-button",
          "title": "Still button",
          "text": "By default, Chromium, Firefox and WebKit use two equal boxes in a row.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stable"
          ],
          "edges": [
            "check"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            },
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            }
          ],
          "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": "first-box-is-stored",
          "title": "First box is stored",
          "text": "First box: stored, nothing to compare yet.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stored"
          ],
          "edges": [
            "nextframe",
            "first"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:729-730",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "count-1-of-1",
          "title": "Count 1 of 1",
          "text": "Same box: count 1 of 1.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "count"
          ],
          "edges": [
            "next",
            "equal"
          ],
          "defs": [],
          "code": "compare",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            }
          ],
          "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": "all-four-states-pass",
          "title": "All four states pass",
          "text": "Stable, visible, enabled and not inert.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "visible",
            "enabled",
            "inert"
          ],
          "edges": [
            "reached",
            "then",
            "enabled_inert"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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": "then-click",
          "title": "Then click",
          "text": "The click goes on to scrolling and the hit target check.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "click"
          ],
          "edges": [
            "click"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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": "stable",
          "step": "still-button",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "edge": "check"
        },
        {
          "node": "frame",
          "step": "first-box-is-stored",
          "log": []
        },
        {
          "node": "box",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "stored",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "first"
        },
        {
          "node": "frame",
          "step": "count-1-of-1",
          "log": []
        },
        {
          "node": "box",
          "step": "count-1-of-1",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "compare",
          "step": "count-1-of-1",
          "log": [],
          "edge": "next"
        },
        {
          "node": "count",
          "step": "count-1-of-1",
          "log": [],
          "edge": "equal"
        },
        {
          "node": "visible",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "reached"
        },
        {
          "node": "enabled",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "then"
        },
        {
          "node": "inert",
          "step": "all-four-states-pass",
          "log": [
            "  element is visible, enabled and stable"
          ],
          "edge": "enabled_inert"
        },
        {
          "node": "click",
          "step": "then-click",
          "log": [],
          "edge": "click"
        }
      ]
    },
    {
      "id": "moving",
      "label": "Moving",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": false,
        "nodeBadges": false,
        "log": "incremental"
      },
      "whole": {
        "title": "Moving",
        "text": "The dot follows this scenario across the map, and the call log fills in as it goes."
      },
      "steps": [
        {
          "id": "moving-button",
          "title": "Moving button",
          "text": "The box changes, so the attempt fails. The next attempt starts a new check.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stable"
          ],
          "edges": [
            "check"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:712-716",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "dom.ts:372-379",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L372-L379"
            },
            {
              "label": "dom.ts:333-347",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L347"
            }
          ],
          "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": "first-box-is-stored",
          "title": "First box is stored",
          "text": "First box: stored.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stored"
          ],
          "edges": [
            "nextframe",
            "first"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:729-730",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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-box-moved",
          "title": "The box moved",
          "text": "The box moved: the check fails at once.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "changed"
          ],
          "edges": [
            "next",
            "changed"
          ],
          "defs": [],
          "code": "compare",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is not stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "dom.ts:372-379",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L372-L379"
            }
          ],
          "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": "new-attempt-new-check",
          "title": "New attempt, new check",
          "text": "New attempt, new check: no stored box.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "retry",
            "stable"
          ],
          "edges": [
            "retry",
            "fresh"
          ],
          "defs": [],
          "code": "animations",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is not stable",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "dom.ts:333-347",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L333-L347"
            },
            {
              "label": "injectedScript.ts:712-716",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
            }
          ],
          "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": "store-a-fresh-first-box",
          "title": "Store a fresh first box",
          "text": "The new attempt starts a new check with no stored box.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stored"
          ],
          "edges": [
            "nextframe",
            "first"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is not stable",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:712-716",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "count-1-of-1",
          "title": "Count 1 of 1",
          "text": "Same box: count 1 of 1.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "count"
          ],
          "edges": [
            "next",
            "equal"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is not stable",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            }
          ],
          "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": "all-four-states-pass",
          "title": "All four states pass",
          "text": "All four states passed. The click goes on to scrolling and the hit target check.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "edges": [
            "reached",
            "then",
            "click",
            "enabled_inert"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is not stable",
            "retrying click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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": "stable",
          "step": "moving-button",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "edge": "check"
        },
        {
          "node": "frame",
          "step": "first-box-is-stored",
          "log": []
        },
        {
          "node": "box",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "stored",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "first"
        },
        {
          "node": "frame",
          "step": "the-box-moved",
          "log": []
        },
        {
          "node": "box",
          "step": "the-box-moved",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "compare",
          "step": "the-box-moved",
          "log": [],
          "edge": "next"
        },
        {
          "node": "changed",
          "step": "the-box-moved",
          "log": [
            "  element is not stable"
          ],
          "edge": "changed",
          "fail": true
        },
        {
          "node": "retry",
          "step": "new-attempt-new-check",
          "log": [],
          "edge": "retry"
        },
        {
          "node": "stable",
          "step": "new-attempt-new-check",
          "log": [
            "retrying click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "edge": "fresh"
        },
        {
          "node": "frame",
          "step": "store-a-fresh-first-box",
          "log": []
        },
        {
          "node": "box",
          "step": "store-a-fresh-first-box",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "stored",
          "step": "store-a-fresh-first-box",
          "log": [],
          "edge": "first"
        },
        {
          "node": "frame",
          "step": "count-1-of-1",
          "log": []
        },
        {
          "node": "box",
          "step": "count-1-of-1",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "compare",
          "step": "count-1-of-1",
          "log": [],
          "edge": "next"
        },
        {
          "node": "count",
          "step": "count-1-of-1",
          "log": [],
          "edge": "equal"
        },
        {
          "node": "visible",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "reached"
        },
        {
          "node": "enabled",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "then"
        },
        {
          "node": "inert",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "enabled_inert"
        },
        {
          "node": "click",
          "step": "all-four-states-pass",
          "log": [
            "  element is visible, enabled and stable"
          ],
          "edge": "click"
        }
      ]
    },
    {
      "id": "webkit",
      "label": "WebKit default",
      "display": {
        "counterLabel": true,
        "edges": "all",
        "edgeBadges": false,
        "nodeBadges": false,
        "log": "incremental"
      },
      "whole": {
        "title": "WebKit default",
        "text": "A default WebKit check stores one box, compares the next and then checks the remaining states."
      },
      "steps": [
        {
          "id": "webkit-uses-the-default-count-of",
          "title": "WebKit uses the default count of one",
          "text": "One equal comparison is enough by default. The first box is stored; the next equal box passes stable.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stable"
          ],
          "edges": [
            "check"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            },
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            }
          ],
          "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": "first-box-is-stored",
          "title": "First box is stored",
          "text": "First box: stored, nothing to compare yet.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "stored"
          ],
          "edges": [
            "nextframe",
            "first"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:729-730",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
            },
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            }
          ],
          "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": "count-1-of-1",
          "title": "Count 1 of 1",
          "text": "Same box: count 1 of 1.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "count"
          ],
          "edges": [
            "next",
            "equal"
          ],
          "defs": [],
          "code": "compare",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:731-739",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
            },
            {
              "label": "crPage.ts:335-337",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/chromium/crPage.ts#L335-L337"
            },
            {
              "label": "ffPage.ts:562-564",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/firefox/ffPage.ts#L562-L564"
            },
            {
              "label": "wkPage.ts:977-979",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
            }
          ],
          "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": "all-four-states-pass",
          "title": "All four states pass",
          "text": "Stable, visible, enabled and not inert.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "visible",
            "enabled",
            "inert"
          ],
          "edges": [
            "reached",
            "then",
            "enabled_inert"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "injectedScript.ts:692-709",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L692-L709"
            },
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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": "then-click",
          "title": "Then click",
          "text": "The click goes on to scrolling and the hit target check.",
          "show": [
            "call",
            "retry",
            "stable",
            "frame",
            "box",
            "stored",
            "compare",
            "count",
            "changed",
            "visible",
            "enabled",
            "inert",
            "click"
          ],
          "current": [
            "click"
          ],
          "edges": [
            "click"
          ],
          "defs": [],
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable",
            "  element is visible, enabled and stable"
          ],
          "sources": [
            {
              "label": "dom.ts:432-441",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
            }
          ],
          "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": "stable",
          "step": "webkit-uses-the-default-count-of",
          "log": [
            "attempting click action",
            "  waiting for element to be visible, enabled and stable"
          ],
          "edge": "check"
        },
        {
          "node": "frame",
          "step": "first-box-is-stored",
          "log": []
        },
        {
          "node": "box",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "stored",
          "step": "first-box-is-stored",
          "log": [],
          "edge": "first"
        },
        {
          "node": "frame",
          "step": "count-1-of-1",
          "log": []
        },
        {
          "node": "box",
          "step": "count-1-of-1",
          "log": [],
          "edge": "nextframe"
        },
        {
          "node": "compare",
          "step": "count-1-of-1",
          "log": [],
          "edge": "next"
        },
        {
          "node": "count",
          "step": "count-1-of-1",
          "log": [],
          "edge": "equal"
        },
        {
          "node": "visible",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "reached"
        },
        {
          "node": "enabled",
          "step": "all-four-states-pass",
          "log": [],
          "edge": "then"
        },
        {
          "node": "inert",
          "step": "all-four-states-pass",
          "log": [
            "  element is visible, enabled and stable"
          ],
          "edge": "enabled_inert"
        },
        {
          "node": "click",
          "step": "then-click",
          "log": [],
          "edge": "click"
        }
      ]
    }
  ],
  "definitions": {
    "click": {
      "term": "Click states",
      "text": "A click checks stable, visible, enabled and not inert before scrolling and checking the point."
    },
    "stable": {
      "term": "Stable",
      "text": "The box stays equal between animation frames."
    },
    "box": {
      "term": "Measured box",
      "text": "The element’s top, left, width and height."
    },
    "stored": {
      "term": "First box",
      "text": "The first box is stored, with nothing to compare yet."
    },
    "compare": {
      "term": "Box comparison",
      "text": "A changed box fails at once; an equal box increments the count."
    },
    "count": {
      "term": "Equal comparison count",
      "text": "By default, one equal comparison is enough in Chromium, Firefox and WebKit."
    },
    "retry": {
      "term": "New check",
      "text": "A new attempt starts a new check with no stored box."
    },
    "frame": {
      "term": "Animation frames",
      "text": "The checker schedules its polls with requestAnimationFrame."
    },
    "inert": {
      "term": "Not inert",
      "text": "The element and its parents have no inert attribute."
    }
  },
  "code": {
    "compare": {
      "title": "Inside Playwright · injectedScript.ts",
      "source": {
        "label": "injectedScript.ts:731-739",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
      },
      "lines": [
        "if (lastRect) {",
        "  const samePosition = rect.x === lastRect.x && rect.y === lastRect.y && rect.width === lastRect.width && rect.height === lastRect.height;",
        "  if (!samePosition)",
        "    return false;",
        "  if (++stableRafCounter >= this._stableRafCount)",
        "    return true;",
        "}",
        "lastRect = rect;"
      ]
    },
    "animations": {
      "title": "In your test · animations",
      "lines": [
        "// ✗ Guess how long the animation takes",
        "await page.waitForTimeout(500);",
        "await menu.getByText('Save').click();",
        "",
        "// ✓ Click waits for the box to settle",
        "await menu.getByText('Save').click();"
      ]
    }
  },
  "conceptScenario": "how",
  "concepts": [
    {
      "label": "Your test",
      "layer": "client",
      "items": [
        {
          "definition": "click",
          "short": "A click checks stable, visible, enabled and not inert before scrolling and checking the point.",
          "nodes": [
            "call"
          ],
          "step": {
            "step": "you-call-click"
          },
          "source": {
            "label": "dom.ts:432-441",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/dom.ts#L432-L441"
          }
        }
      ]
    },
    {
      "label": "Server retries",
      "layer": "server",
      "items": [
        {
          "definition": "retry",
          "short": "Each stability check starts with no stored box.",
          "nodes": [
            "retry"
          ],
          "step": {
            "step": "a-retry-starts-a-new-check"
          },
          "source": {
            "label": "injectedScript.ts:712-716",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L712-L716"
          }
        }
      ]
    },
    {
      "label": "In the page · element checks",
      "layer": "page",
      "items": [
        {
          "definition": "stable",
          "short": "The measured box equals the stored box.",
          "nodes": [
            "stable"
          ],
          "step": {
            "step": "the-code-checks-stable-first"
          },
          "source": {
            "label": "injectedScript.ts:731-739",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
          }
        },
        {
          "definition": "box",
          "short": "The element’s top, left, width and height.",
          "nodes": [
            "box"
          ],
          "step": {
            "step": "animation-frames-drive-the-check"
          },
          "source": {
            "label": "injectedScript.ts:729-730",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L729-L730"
          }
        },
        {
          "definition": "stored",
          "short": "The first box is stored, with nothing to compare yet.",
          "nodes": [
            "stored"
          ],
          "step": {
            "step": "the-first-box-is-only-stored"
          },
          "source": {
            "label": "injectedScript.ts:731-739",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
          }
        },
        {
          "definition": "compare",
          "short": "A changed box fails at once; an equal box increments the count.",
          "nodes": [
            "compare"
          ],
          "step": {
            "step": "compare-the-next-box"
          },
          "source": {
            "label": "injectedScript.ts:731-739",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L731-L739"
          }
        },
        {
          "definition": "count",
          "short": "By default, one equal comparison is enough in Chromium, Firefox and WebKit.",
          "nodes": [
            "count"
          ],
          "step": {
            "step": "equal-boxes-add-to-the-count"
          },
          "source": {
            "label": "wkPage.ts:977-979",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright-core/src/server/webkit/wkPage.ts#L977-L979"
          }
        },
        {
          "definition": "inert",
          "short": "The element and its parents have no inert attribute.",
          "nodes": [
            "inert"
          ],
          "step": {
            "step": "equal-boxes-add-to-the-count"
          },
          "source": {
            "label": "injectedScript.ts:807-813",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L807-L813"
          }
        }
      ]
    },
    {
      "label": "Browser",
      "layer": "browser",
      "items": [
        {
          "definition": "frame",
          "short": "The checker schedules its polls with requestAnimationFrame.",
          "nodes": [
            "frame"
          ],
          "step": {
            "step": "animation-frames-drive-the-check"
          },
          "source": {
            "label": "injectedScript.ts:746-757",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/injected/src/injectedScript.ts#L746-L757"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "stable",
      "visible",
      "enabled",
      "inert"
    ],
    "2": [
      "box",
      "stored",
      "compare"
    ],
    "3": [
      "changed",
      "retry",
      "count"
    ],
    "4": [
      "frame",
      "count"
    ]
  },
  "deeper": [
    {
      "title": "2.1 Two loops behind every click",
      "href": "/2-actions/2-1-two-loops/",
      "why": "How a failed check leads to another attempt."
    },
    {
      "title": "2.5 Force skips safeguards, but still needs a click point",
      "href": "/2-actions/2-5-what-force-skips/",
      "why": "Which checks force skips."
    }
  ],
  "viewBox": [
    519.5,
    1816.8
  ],
  "measurement": {
    "name": "font-table",
    "labels": {
      "request": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "check": {
        "width": 120.09899999999998,
        "height": 12.6
      },
      "measure": {
        "width": 44.24699999999999,
        "height": 12.6
      },
      "first": {
        "width": 56.88899999999999,
        "height": 12.6
      },
      "next": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "equal": {
        "width": 31.604999999999997,
        "height": 12.6
      },
      "changed": {
        "width": 44.24699999999999,
        "height": 12.6
      },
      "reached": {
        "width": 82.17299999999999,
        "height": 12.6
      },
      "then": {
        "width": 25.284,
        "height": 12.6
      },
      "retry": {
        "width": 31.604999999999997,
        "height": 12.6
      },
      "fresh": {
        "width": 56.88899999999999,
        "height": 12.6
      },
      "nextframe": {
        "width": 63.20999999999999,
        "height": 12.6
      }
    }
  }
}
