|
1 | 1 | # VBAChromeDevProtocol |
2 | | -VBA (Excel) based wrapper for Chrome Developer Protocol (CDP) - sorta a VBA version of Puppeteer/Selenium |
| 2 | +**VBA** (Excel) based wrapper for **Chrome Developer Protocol (CDP)** - sorta a VBA version of Puppeteer/Selenium |
3 | 3 |
|
4 | 4 | Note: if you can use Puppeteer, Playright, Selenium, or some other tool - then use it! |
5 | 5 | But if you can only use VBA, then this is meant to provide a means to automate Chrome or Edge based browsers. (Possibly Firefox via its limited CDP support, though currently untested/nonfunctional). |
6 | 6 |
|
7 | | -TODO: this currently relies on Chrome/Edge's ability to do the CDP via pipes when started, a future version will connect to the websocket to allow connecting to existing browsers. |
8 | | - |
9 | 7 | See https://chromedevtools.github.io/devtools-protocol/ for overview of Chrome Devloper Protocol |
10 | 8 | Initial work based on information and clsEdge from https://www.codeproject.com/Tips/5307593/Automate-Chrome-Edge-using-VBA |
11 | 9 |
|
12 | | -Special thanks / uses source based on |
| 10 | +## TODO |
| 11 | +- this currently relies on Chrome/Edge's ability to do the CDP via pipes when started, a future version will connect to the websocket to allow connecting to existing browsers. |
| 12 | +- improve/add usage documentation |
| 13 | +- generator needs some more work (still has some class names too long/clash, still has some clashes with reserved words, incorrectly assumes class for unspecified _object_) |
| 14 | + |
| 15 | +## Usage |
| 16 | +see Example.xlsm - documentation to be added |
| 17 | + |
| 18 | +## Special thanks / uses source based on |
13 | 19 |
|
14 | | -clsCDP derived from clsEdge : https://www.codeproject.com/Tips/5307593/Automate-Chrome-Edge-using-VBA - CPOL license copyright ChrisK23 |
15 | | -JsonConverter : https://github.com/VBA-tools/VBA-JSON - BSD license copyright Ryo Yokoyama |
16 | | -clsProcess : https://stackoverflow.com/questions/62172551/error-with-createpipe-in-vba-office-64bit |
17 | | -basUtf8FromString : https://www.di-mgt.com.au/basUtf8FromString64.bas.html - MIT copyright David Ireland DI Management Services Pty |
18 | | -WinHttpCommon / clsWebSocket : https://github.com/EagleAglow/vba-websocket-class - MIT copyright EagleAglow |
19 | | -ClipboardUtils : https://msdn.microsoft.com/en-us/library/office/ff192913.aspx?f=255&MSPPError=-2147217396 |
20 | | -WinWindowStyle : https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow |
| 20 | +- clsCDP derived from clsEdge : https://www.codeproject.com/Tips/5307593/Automate-Chrome-Edge-using-VBA - CPOL license copyright ChrisK23 |
| 21 | +- JsonConverter : https://github.com/VBA-tools/VBA-JSON - BSD license copyright Ryo Yokoyama |
| 22 | +- clsProcess : https://stackoverflow.com/questions/62172551/error-with-createpipe-in-vba-office-64bit |
| 23 | +- basUtf8FromString : https://www.di-mgt.com.au/basUtf8FromString64.bas.html - MIT copyright David Ireland DI Management Services Pty |
| 24 | +- WinHttpCommon / clsWebSocket : https://github.com/EagleAglow/vba-websocket-class - MIT copyright EagleAglow |
| 25 | +- ClipboardUtils : https://msdn.microsoft.com/en-us/library/office/ff192913.aspx?f=255&MSPPError=-2147217396 |
| 26 | +- WinWindowStyle : https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow |
0 commit comments