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


automation?clj

(automation? a)

bounding-boxclj

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

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.
raw docstring

clickclj

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

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.
raw docstring

create-automationclj

(create-automation connection)

current-automationclj


double-clickclj

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

evaluateclj

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

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.
raw docstring

focusclj

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

Focus an input element

Focus an input element
raw docstring

html-ofclj

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

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.
raw docstring

rootclj

(root)
(root {c :connection})

Returns the root node for id reference.

Returns the root node for id reference.
raw docstring

screenshotclj

(screenshot)
(screenshot {c :connection})

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.
raw docstring

selclj

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

Select elements by selector.

Select elements by selector.
raw docstring

sel1clj

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

Select a single element by selector.

Select a single element by selector.
raw docstring

set-attributeclj

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

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.
raw docstring

text-ofclj

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

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.
raw 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.
raw docstring

waitcljmacro

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

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.
raw 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)
raw docstring

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

× close