lokesh2201/LocatorX — reverse-engineered prompt

Reverse engineered prompt

Build me a local web app called LocatorX. I want to paste in any page URL and my Mistral API key, then have the app open the page in a real browser, wait for it to finish loading, and only pull elements that a real user can actually see on screen. For each visible element, use AI to come up with strong XPath and CSS locators, then test those locators live on the page and keep only the ones that uniquely match one visible element with high confidence.

The app should show a clean results page with a small stats summary, a table of verified locators, and easy copy buttons. I also want a tab where it generates a ready to use page object file that I can view, copy, and download in either Playwright JavaScript or Java Selenium with PageFactory. Please include export options for CSV and JSON, handle slow or JS heavy pages reasonably well, and show helpful errors if nothing useful is found. If you need to, look up current docs online and make it run locally in the browser on port 3000.

Want more depth? Deep Reverse