Another question for using Playwright with nbb. Has anyone thought of having a Cljs REPL connected to Playwright browser instance? I want to be able to poke into elements on the page interactively. Would that be even possible?
yes, why not?
or do you mean, evaluate JS in the browser?
So, we can do something like https://playwright.dev/docs/api/class-page#page-pause, right? How difficult it then to establish a browser REPL?
So one can do things directly from the editor, e.g., (js/alert "blabla")
I dunno, maybe there isn't much utility in all that at all, after all, one can always open devtools in the headed browser frame, but still would be very cool if that's possible.
playwright lets you evaluate JS in the browser
but this needs to be compiled first, nbb is an interpreter
or you'd have to insert #scittle or so in the browser first and then call scittle.core.eval_string
or precompile a JS string using #squint for example
but seems like a hassle if it's not a lot of code
Interesting. Thank you for the direction. If I get bored maybe I'll try