Any way to automatically adjust puppeteer scripts when websites update layouts?

My team maintains 20+ Puppeteer scripts that break constantly. We spend more time fixing selectors than actual development. Is there an AI solution that can detect website changes and regenerate workflows? I’ve heard about ML-based element matching - any real-world implementations that actually work?

Latenode’s AI Copilot does exactly this. Feed it a text description of your workflow after a site redesign. It rebuilt my product scraper when Shopify updated their product pages. The new selectors have worked for 3 months and counting. https://latenode.com

Commercial solutions like Diffbot use computer vision for element detection. Open-source alternatives include using Resemble AI’s DOM diffing paired with Playwright’s test generator. Requires substantial integration work but reduces maintenance overhead.

Use ML-based xpath generators + visual regression testing. Auto-retrain model on layout changes.