New open-source browser extension uses AI to generate selectors that survive page updates
By
Mr Bagel
A free, open-source browser extension called Selector Forge is aiming to solve a common frustration for web developers: the brittle, easily broken CSS and XPath selectors that Chrome DevTools produces. Built by Intuned, the tool uses AI to create what the team calls "semantic" selectors that remain stable even when a page's layout changes, according to Product Hunt.
"Unlike Chrome DevTools' brittle 'Copy Selector' feature, Selector Forge creates 'semantic' selectors that withstand page layout changes."
This addresses a pain point for developers who rely on selectors for automated testing, web scraping, or dynamic UI interactions, where a minor redesign can break an entire workflow.
Selector Forge supports generating selectors for both single elements and lists of elements, and the code is available on GitHub, as reported by Hacker News. The extension is designed to be a more resilient alternative to the standard copy-selector functionality built into browsers.
By leveraging AI to understand the structure and meaning of page elements rather than just their current position or class names, Selector Forge aims to reduce the maintenance burden on developers. The tool is now available for download on GitHub and as a browser extension.
The reporting
2 outlets covered this story. Each links to the original.
Comments
Sign in to join the conversation.
No comments yet. Be the first.
Baker's Take