Babashka pod wrapping Etaoin, a pure Clojure webdriver protocol implementation.
This is work in progress. The API contains the most essential Etaoin functions, but some may be missing, for which I will happily accept PRs.
- Use from the babashka registry as
(pods/load-pod 'org.babashka/etaoin "0.1.0")
- Download a binary from Github releases
This pod requires babashka v0.0.96 or later. Additionally you might have to
install geckodriver
for Firefox, or chromedriver
for Chrome.
etaoin.api
is exposed aspod.babashka.etaoin
etaoin.keys
is exposed aspod.babashka.etaoin.keys
etaoin.query
is exposed aspod.babashka.etaoin.query
(require '[babashka.pods :as pods])
(pods/load-pod 'org.babashka/etaoin "0.1.0")
;; or for loading local binary: (pods/load-pod "./pod-babashka-etaoin")
(require '[pod.babashka.etaoin :as eta])
(def driver (eta/firefox))
(eta/go driver "https://clojure.org")
(eta/quit driver)
Also see example.clj:
$ bb example.clj
"https://en.wikipedia.org/wiki/Clojure"
"Clojure - Wikipedia"
true
"Clojure - Wikipedia"
Run bb native-image
Run bb test
.
Copyright © 2020 - 2022 Michiel Borkent
Distributed under the EPL License. See LICENSE.