Fork me on GitHub
#nbb
<
2022-09-28
>
borkdude17:09:00

Generating a pageFunction for playwright usage: https://twitter.com/borkdude/status/1575181132080943104 A pageFunction in playwright is a function that is executed in the page, where you pretty much have to rely on pure JS without pulling in any CLJS. You can generate such JS with #squint which is what I did in the tweet. Weirdly enough, playwright requires you to define the function in the Node.js runtime and then serializes it, instead of just passing a string which is evaluated in the browser.

nbb 1