Hard server-rendered locator: csslocator: data-testid action: click

Regenerating IDs

Every page load, the server mints a fresh random id/class — a hardcoded locator breaks on the very next run.

This button's id and class are generated fresh on every real server render (not a client-side navigation). Hardcode either one in your test and it will break on the very next full page load.

This render's id: submit-558e7647 · class: cls-dd517219

Framework notes

  • selenium — Reload twice in the same test and assert the id actually changed, to prove you are not relying on it.