Skip to content

Releases: PerditionC/VBAChromeDevProtocol

version 0.3

13 Feb 02:59
Compare
Choose a tag to compare

Add support to connect via CDP websocket interface

version 0.2

09 Feb 00:19
Compare
Choose a tag to compare

Multiple fixes and implementation of querySelectorAll

version 0.1

31 Jan 14:50
61648bc
Compare
Choose a tag to compare

This is the initial release.

It is still a bit rough around the edges, but has some basic capabilities.

  • a wrapper around the current tip CDP protocol [based on exported json from browser], covers all domains currently documented
  • class wrappers around many of the object types along with routines to convert to/from Dictionary object
  • a limited set of enumerations along with routines to convert to/from strings to VBA enum values
  • a few test/example cases

The clsCDP and cdp* classes can be used as your own basis or they can be used along with AutomateBrowser class to have a higher level support for automating Edge/Chrome browsers. Note: testing currently done on Edge as Chrome is being used for browsing.

Open "CDP Addin.xlam" or add to your addins folder and grant permission (you may need to unblock in Windows Explorer by right clicking properties, unblock) to enable content/macros. Add a reference to it from your Workbook and call its routines - see Examples.xlsm.

"generator.xlsm" is used to create the cdp* classes source files from a protocol.json text file and needed be downloaded unless you want to make changes to the generated class files.