Alternate syntax for etaoin.api
with-<driver> calls.
Alternate syntax for [[etaoin.api]] with-<driver> calls.
(with-chrome [bind & [opts]] & body)
Executes body
with a Chrome driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-chrome [driver]
(go driver "https://clojure.org"))
Executes `body` with a Chrome driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-chrome [driver] (go driver "https://clojure.org")) ```
(with-chrome-headless [bind & [opts]] & body)
Executes body
with a headless Chrome driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-chrome-headless [driver]
(go driver "https://clojure.org"))
Executes `body` with a headless Chrome driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-chrome-headless [driver] (go driver "https://clojure.org")) ```
(with-edge [bind & [opts]] & body)
Executes body
with a Edge driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-edge [driver]
(go driver "https://clojure.org"))
Executes `body` with a Edge driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-edge [driver] (go driver "https://clojure.org")) ```
(with-edge-headless [bind & [opts]] & body)
Executes body
with a headless Edge driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
options
- optional, see Driver Options.
Example:
(with-edge-headless [driver]
(go driver "https://clojure.org"))
Executes `body` with a headless Edge driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `options` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-edge-headless [driver] (go driver "https://clojure.org")) ```
(with-firefox [bind & [opts]] & body)
Executes body
with a Firefox driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-firefox [driver]
(go driver "https://clojure.org"))
Executes `body` with a Firefox driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-firefox [driver] (go driver "https://clojure.org")) ```
(with-firefox-headless [bind & [opts]] & body)
Executes body
with a headless Firefox driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-firefox-headless [driver]
(go driver "https://clojure.org"))
Executes `body` with a headless Firefox driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-firefox-headless [driver] (go driver "https://clojure.org")) ```
(with-phantom [bind & [opts]] & body)
Executes body
with a Phantom.JS driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-phantom [driver]
(go driver "https://clojure.org"))
Executes `body` with a Phantom.JS driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-phantom [driver] (go driver "https://clojure.org")) ```
(with-safari [bind & [opts]] & body)
Executes body
with a Safari driver session bound to bind
.
Driver is automatically launched and terminated (even if an exception occurs).
opts
- optional, see Driver Options.
Example:
(with-safari [driver]
(go driver "https://clojure.org"))
Executes `body` with a Safari driver session bound to `bind`. Driver is automatically launched and terminated (even if an exception occurs). `opts` - optional, see [Driver Options](/doc/01-user-guide.adoc#driver-options). Example: ```Clojure (with-safari [driver] (go driver "https://clojure.org")) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close