How longvh211/chromium-automation-with-cdp-for-vba works
This VBA framework automates Chromium-based browsers through the Chrome DevTools Protocol. The principal workflow is to create a browser session, manage tabs, then inspect and interact with page elements or extract page content. The README also documents browser/window configuration, JavaScript-library integration, snapshots, and session reattachment. Source excerpts were not provided, so components and links below rely on README descriptions; internal call ownership and lower-level protocol details cannot be verified.
Main entry points: CDPBrowser.cls Browser control · init.bas Browser creation · demo.bas Usage examples · CDPElement.cls Element interaction
Components 17
VBA entry
- Browser creation
Modules/init.bas - Usage examples
Modules/demo.bas
Browser sessions
- Browser control
Class Modules/CDPBrowser.cls - CDP protocol core
Class Modules/CDPCore.cls - Tab sessions
Class Modules/CDPBrowser.cls - Window control
Class Modules/CDPBrowser.cls - JSON conversion
Class Modules/CDPJConv.cls
Page automation
- Element interaction
Class Modules/CDPElement.cls - Element lookup
Class Modules/CDPElement.cls - Frame access
Class Modules/CDPElement.cls - Page content
Class Modules/CDPBrowser.cls - Element waits
Class Modules/CDPElement.cls
Page extensions
- JavaScript library
Class Modules/CDPBrowser.cls - Page snapshots
Class Modules/CDPBrowser.cls
Other components
- VBA application
- Chromium browser
- External JS library
Connections 14
- VBA application → Browser creation: creates browser
README.md - Browser creation → Browser control: returns object
README.md - Browser control → Chromium browser: starts browser
README.md - Browser control → Tab sessions: manages tabs
README.md - Browser control → Window control: controls window
README.md - Browser control → Page content: extracts HTML
README.md - Browser control → JavaScript library: adds library
README.md - JavaScript library → External JS library: integrates
README.md - JavaScript library → Page snapshots: enables snapshots
README.md - VBA application → Element interaction: interacts with
README.md - VBA application → Element lookup: finds elements
README.md - VBA application → Frame access: accesses frames
README.md - VBA application → Element waits: waits for state
README.md - VBA application → Usage examples: reviews examples
README.md