Why this is tricky

"Replace element" doesn't update the target's text or attributes — it removes the whole DOM node and inserts a brand-new one in its place, with a fresh id. A cached element handle grabbed before the swap now points at a node that's been removed from the document; most WebDriver-based tools throw a stale-element error the moment you try to use it. Re-locate the element after every replace, don't reuse a saved reference.

Turn on "Auto-replace" to see the same thing happen on a timer, without a click to warn you.

Replacements: 0

Initial state.