Public Vars

Back

with-driver (clj)

(source)

macro

(with-driver type opts? bind & body)
Executes `body` with a driver session of `type` (e.g. `:chrome`, `:firefox` `:safari` `:edge` `:phantom`) with `opts` options, binding driver instance to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` map can be omitted, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-driver :firefox driver (go driver "https://clojure.org")) ```

Examples