I've been working on a library to control a browser instance via the Chrome Devtools Protocol, I just published the package on hex here:
https://hexdocs.pm/chrobot/index.html
Hope it might be useful to someone! There are some examples right in the readme if you're interested.
I used the JSON specification of the protocol to generate gleam code for it, so you can use the protocol in a typed way (somewhat).
There is also a module with high level functions to do simple things, which I'm still hoping to extend considerably, but for now I need to take a break I think.
It's been working well for me on macOS, I ran the tests on Debian as well, I have no idea if it would work on windows.
An enjoyable first gleaming experience for me overall π
A browser automation tool and interface to the Chrome DevTools Protocol.

"