Skip to main content

Stale Element Demo

Stale Element Demo (Repeated Replacement)

This page replaces the button element in the DOM every 3 second using replaceWith(clone). If Selenium stores a WebElement reference and you wait, clicking the old reference should throw StaleElementReferenceException.

Replaces every 3s
Page loaded at: --
Button last replaced at: (pending)
Replacement count: 0