Fork me on GitHub
#etaoin
<
2020-11-27
>
voortuck16:11:35

Can you use etaion to print to pdf? Webdriver talks about it here: https://www.w3.org/TR/webdriver/#dfn-print-page

rgm18:11:40

I went poking through etaoin looking for this ability but eventually ended up using tatut/clj-chrome-devtools … here’s an example https://github.com/rgm/experiments/blob/master/202011-headless-chrome/src/rgm/core.clj#L29-L36

rgm18:11:43

you’ll need a headless chrome instance running and listening to port 9222. I’ve used Docker on my laptop but could also just have something running as eg. a systemd service https://github.com/rgm/experiments/blob/master/202011-headless-chrome/Makefile#L5

rgm18:11:40

I went poking through etaoin looking for this ability but eventually ended up using tatut/clj-chrome-devtools … here’s an example https://github.com/rgm/experiments/blob/master/202011-headless-chrome/src/rgm/core.clj#L29-L36