{
  "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": 6,
      "h": 62
    },
    "server": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 92,
      "h": 74
    },
    "page": {
      "label": "IN THE PAGE · INJECTED SCRIPT",
      "layer": "page",
      "y": 190,
      "h": 470
    },
    "continuation": {
      "label": "PLAYWRIGHT SERVER",
      "layer": "server",
      "y": 680,
      "h": 76
    },
    "browser": {
      "label": "BROWSER",
      "layer": "browser",
      "y": 798,
      "h": 70
    }
  },
  "frames": {
    "stability": {
      "label": "STABILITY CHECK",
      "showWith": [
        "stable"
      ],
      "box": [
        14,
        214,
        392,
        342
      ]
    }
  },
  "nodes": {
    "call": {
      "label": "locator.click()",
      "layer": "client",
      "lane": "test",
      "box": [
        16,
        28,
        388,
        36
      ]
    },
    "retry": {
      "label": "retrying click action",
      "layer": "server",
      "lane": "server",
      "box": [
        16,
        118,
        388,
        36
      ]
    },
    "stable": {
      "label": "stable",
      "layer": "page",
      "lane": "page",
      "box": [
        24,
        234,
        180,
        36
      ]
    },
    "frame": {
      "label": "animation frames",
      "layer": "browser",
      "lane": "browser",
      "box": [
        16,
        824,
        388,
        36
      ]
    },
    "box": {
      "label": "measure the box",
      "layer": "page",
      "lane": "page",
      "box": [
        24,
        322,
        180,
        36
      ]
    },
    "stored": {
      "label": "store first box",
      "layer": "page",
      "lane": "page",
      "box": [
        216,
        322,
        180,
        36
      ]
    },
    "compare": {
      "label": "compare next box",
      "layer": "page",
      "lane": "page",
      "box": [
        24,
        410,
        180,
        36
      ]
    },
    "count": {
      "label": "equal comparison count",
      "layer": "page",
      "lane": "page",
      "box": [
        24,
        498,
        180,
        36
      ]
    },
    "changed": {
      "label": "element is not stable",
      "layer": "page",
      "lane": "page",
      "box": [
        216,
        410,
        180,
        36
      ]
    },
    "visible": {
      "label": "visible",
      "layer": "page",
      "lane": "page",
      "box": [
        24,
        586,
        180,
        36
      ]
    },
    "enabled": {
      "label": "enabled",
      "layer": "page",
      "lane": "page",
      "box": [
        216,
        586,
        180,
        36
      ]
    },
    "click": {
      "label": "scroll · hit target · click",
      "layer": "server",
      "lane": "continuation",
      "box": [
        24,
        704,
        372,
        36
      ]
    },
    "inert": {
      "label": "not inert",
      "layer": "page",
      "lane": "page",
      "box": [
        216,
        628,
        180,
        28
      ]
    }
  },
  "edges": {
    "request": {
      "from": "call",
      "to": "retry",
      "label": {
        "at": [
          322,
          108
        ],
        "text": "requests"
      },
      "path": "M390,64 V116",
      "badge": [
        390,
        80
      ]
    },
    "check": {
      "from": "retry",
      "to": "stable",
      "label": {
        "at": [
          214,
          281
        ],
        "text": "checks stable first"
      },
      "path": "M400,154 V252 H206",
      "badge": [
        400,
        180
      ]
    },
    "measure": {
      "from": "stable",
      "to": "box",
      "label": {
        "at": [
          88,
          299
        ],
        "text": "measure"
      },
      "path": "M80,270 V320",
      "badge": [
        80,
        286
      ]
    },
    "first": {
      "from": "box",
      "to": "stored",
      "label": {
        "at": [
          222,
          309
        ],
        "text": "first box"
      },
      "path": "M190 322 V302 H210 V340 H214",
      "badge": [
        210,
        340
      ]
    },
    "next": {
      "from": "stored",
      "to": "compare",
      "label": {
        "at": [
          230,
          378
        ],
        "text": "next box"
      },
      "path": "M306,358 V382 H114 V408",
      "badge": [
        114,
        394
      ]
    },
    "equal": {
      "from": "compare",
      "to": "count",
      "label": {
        "at": [
          112,
          475
        ],
        "text": "equal"
      },
      "path": "M100,446 V496",
      "badge": [
        100,
        465
      ]
    },
    "changed": {
      "from": "compare",
      "to": "changed",
      "label": {
        "at": [
          222,
          461
        ],
        "text": "changed"
      },
      "path": "M190 446 V468 H210 V428 H214",
      "badge": [
        210,
        428
      ]
    },
    "reached": {
      "from": "count",
      "to": "visible",
      "label": {
        "at": [
          108,
          574
        ],
        "text": "count reached"
      },
      "path": "M100,534 V584",
      "badge": [
        100,
        548
      ]
    },
    "then": {
      "from": "visible",
      "to": "enabled",
      "label": {
        "at": [
          166,
          640
        ],
        "text": "then"
      },
      "path": "M190 622 V644 H210 V604 H214"
    },
    "click": {
      "from": "inert",
      "to": "click",
      "path": "M306 656 V702",
      "badge": [
        306,
        686
      ]
    },
    "retry": {
      "from": "changed",
      "to": "retry",
      "label": {
        "at": [
          361,
          313
        ],
        "text": "retry"
      },
      "path": "M396,428 H410 V136 H406",
      "badge": [
        410,
        370
      ]
    },
    "fresh": {
      "from": "retry",
      "to": "stable",
      "label": {
        "at": [
          312,
          183
        ],
        "text": "new check"
      },
      "path": "M114 154 V178 H300 V212 H114 V232",
      "badge": [
        300,
        178
      ]
    },
    "nextframe": {
      "from": "frame",
      "to": "box",
      "label": {
        "at": [
          16,
          785
        ],
        "text": "next frame"
      },
      "path": "M16,842 H2 V340 H22"
    },
    "enabled_inert": {
      "from": "enabled",
      "to": "inert",
      "path": "M306 622 V626"
    }
  },
  "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": [
    420,
    876
  ]
}
