I’ve been building browser automations for a few months now, and I keep running into the same frustration. I’ll set up a solid script that works perfectly for a week, then suddenly the website redesigns their checkout flow or moves a button, and everything falls apart.
The selectors I’m using break instantly. I end up spending hours rewriting logic that should be robust. It feels like I’m constantly playing whack-a-mole with brittle selectors and hardcoded element IDs.
I’ve tried making my selectors more flexible, but that only goes so far. The real problem seems to be that I’m building these scripts to work against a specific snapshot of a website, not the actual workflow.
Has anyone figured out a smarter way to handle this? Are there approaches that let you describe what you’re actually trying to do—like “click the add-to-cart button”—rather than chase down the exact selector every time the site changes?