Liking cljdoc? Tell your friends :D

clj-chrome-devtools.automation

Higher level automation convenience API

Higher level automation convenience API
raw docstring

*wait-ms*clj

source

automation?clj

(automation? a)
source

bounding-boxclj

(bounding-box node)
(bounding-box {c :connection :as ctx} node)
source

clear-text-inputclj

(clear-text-input node)
(clear-text-input {c :connection :as ctx} node)

Clear a text input value.

Clear a text input value.
sourceraw docstring

clickclj

(click node)
(click {c :connection :as ctx} node)
source

click-navigateclj

(click-navigate node)
(click-navigate {c :connection :as ctx} node)

Click element and wait for navigation to be done.

Click element and wait for navigation to be done.
sourceraw docstring

create-automationclj

(create-automation connection)
source

current-automationclj

source

double-clickclj

(double-click node)
(double-click {c :connection :as ctx} node)
source

evaluateclj

(evaluate expression)
(evaluate {c :connection :as ctx} expression)
source

file-downloadclj

(file-download url-pattern interaction-fn)
(file-download {c :connection :as ctx} url-pattern interaction-fn)

Run the given interaction-fn which will interact with the page and cause a file download. Monitors network activity to receive a file where the request matches the given URL pattern. Returns a map describing the downloaded file and also has the content.

Run the given interaction-fn which will interact with the page and cause a file download.
Monitors network activity to receive a file where the request matches the given URL pattern.
Returns a map describing the downloaded file and also has the content.
sourceraw docstring

focusclj

(focus node)
(focus {c :connection :as ctx} node)

Focus an input element

Focus an input element
sourceraw docstring

html-ofclj

(html-of node)
(html-of {c :connection :as ctx} node)
source

input-textclj

(input-text node text)
(input-text {c :connection :as ctx} node text)

Type text to an input field.

Type text to an input field.
sourceraw docstring

rootclj

(root)
(root {c :connection})

Returns the root node for id reference.

Returns the root node for id reference.
sourceraw docstring

screenshotclj

(screenshot)
(screenshot {c :connection})
source

scroll-into-viewclj

(scroll-into-view node)
(scroll-into-view {c :connection :as ctx} node)

Make the given node visible by scrolling to it if necessary. Returns the center X/Y of the element.

Make the given node visible by scrolling to it if necessary.
Returns the center X/Y of the element.
sourceraw docstring

selclj

(sel selector)
(sel {c :connection :as ctx} selector)

Select elements by selector.

Select elements by selector.
sourceraw docstring

sel1clj

(sel1 selector)
(sel1 {c :connection :as ctx} selector)

Select a single element by selector.

Select a single element by selector.
sourceraw docstring

set-attributeclj

(set-attribute node attribute-name attribute-value)
(set-attribute {c :connection :as ctx} node attribute-name attribute-value)
source

start!clj

(start!)

Start a new CDP connection and an automation context for it. Sets the current automation context.

Start a new CDP connection and an automation context for it.
Sets the current automation context.
sourceraw docstring

text-ofclj

(text-of node)
(text-of {c :connection :as ctx} node)
source

toclj

(to url)
(to {c :connection r :root} url)

Navigate to the given URL. Waits for browser load to be finished before returning.

Navigate to the given URL. Waits for browser load to be finished before returning.
sourceraw docstring

visibleclj

(visible node)
(visible {c :connection :as ctx} node)

Wait for element to become visible, return true if element is visible, false otherwise.

Wait for element to become visible, return true if element is visible, false otherwise.
sourceraw docstring

waitcljmacro

(wait wait-category result-not body)
(wait wait-category result-not on-failure body)
source

wait-requestclj

(wait-request url-pattern interaction-fn)

Run the given interaction-fn that causes the page to fetch some resource. Monitor network activity to and wait for a request that matches the URL pattern. Returns response information.

Run the given interaction-fn that causes the page to fetch some resource.
Monitor network activity to and wait for a request that matches the URL pattern.
Returns response information.
sourceraw docstring

WebAddresscljprotocol

A web address that can be converted into a string.

A web address that can be converted into a string.

as-stringclj

(as-string this)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close