longvh211/Chromium-Automation-with-CDP-for-VBA ? reverse-engineered prompt

Reverse engineered prompt

Build me a VBA framework that can directly automate Chrome, Edge, and Firefox from Office using the browser DevTools protocol, without needing Selenium or any extra automation tool.

I want it to be easy to drop into an Access, Word, or Excel project, with classes and modules for starting a browser, opening and switching tabs, getting a tab by title or URL, closing tabs, and showing or hiding the browser window. It should also let me find page elements by ID, CSS selector, or XPath, click them, read and set text and values, handle iframes, and send keys in a way that feels like real typing. If a page uses React style fields, the value setting should still work properly.

Please include a few simple demo examples and helpful debugging output so I can see what the browser is doing. Make it support smart waiting for elements to appear or disappear, and make it simple to connect to an existing session and continue automating it. If you need to check current protocol details online, go ahead and look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab