For development, you will need:
- Java
- Clojure
- Leiningen
- ChromeDriver + Google Chrome
The easiest way to install Java and Clojure is using ASDF and running
asdf install
from the root of the project.
I recommend using a combination of Emacs, Clojure-LSP and CIDER.
Another alternative is using Visual Studio Code and Calva.
Fetch deps with lein deps
Compile the project with lein compile
Run using lein run
or with an interactive REPL: lein repl
Run all tests using lein test
Simply run
lein uberjar
This will build a fully self-contained JAR, ready to be run anywhere.
It is very useful to interactively create a driver instance using the Lein REPL or CIDER / Calva jack-in, and then step through the driver steps by evaluating forms (functions) that act on the driver instance.
In some pages, it is easier to simply send multiple keyboard TAB
inputs to select the wanted input, rather than rely on complex selectors. We use this strategy a lot in the time pair entry form.