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-6eb42a45 · class: cls-a0a22451
Framework notes
- selenium — Reload twice in the same test and assert the id actually changed, to prove you are not relying on it.