The missing Wally manual 😀
Haha, no, I know Wally is new, experimental, and subject to breaking changes. I just want to play with it and created this little example project to test it out.
Wally is a Clojure wrapper for Playwright (think Selenium/Cypress, but can be used from the Clojure REPL). Here's how to start navigating a web site from the Clojure REPL in a few steps:
- Copy this project to your computer
- Start the project REPL and connect your editor
- Evaluate the forms in src/e2e_test/example.clj
Yes, that's all there is to it. When you evaluate the first form in the Rich Comment of the example, Wally (or if it is Playwright, idk) will download Chromium and drivers and things, if needed. Chromium will start and open the jsonista library page on Clojars.
The reset of the forms will have you clicking around and enter things on that page. Place the opened Chromium window and your editor window side by side.
This is not a guide teaching you how to do this. If you use Calva, it is only one step: Use the command: Calva: Start the Project and Connect (a.k.a. Jack-in). The prerequisites for this are:
- Have Java installed (I don't dare point at a way to do this, but I like sdk-man a lot myself)
- Have VS Code installed
- Have Calva installed in VS Code
You don't need to know any Clojure, but of course that will make things really fun:
Please consider helping out with keeping this project usable as Wally is being shaped into its 1.0.0 form. Issues and PRs welcome!