Higher level automation convenience API
Higher level automation convenience API
(clear-text-input node)(clear-text-input {c :connection :as ctx} node)Clear a text input value.
Clear a text input value.
(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.
(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.
(focus node)(focus {c :connection :as ctx} node)Focus an input element
Focus an input element
(input-text node text)(input-text {c :connection :as ctx} node text)Type text to an input field.
Type text to an input field.
(root)(root {c :connection})Returns the root node for id reference.
Returns the root node for id reference.
(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.
(sel selector)(sel {c :connection :as ctx} selector)Select elements by selector.
Select elements by selector.
(sel1 selector)(sel1 {c :connection :as ctx} selector)Select a single element by selector.
Select a single element by selector.
(set-attribute node attribute-name attribute-value)(set-attribute {c :connection :as ctx} node attribute-name attribute-value)(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.
(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.
(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.
(wait wait-category result-not body)(wait wait-category result-not on-failure body)(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.
A web address that can be converted into a string.
A web address that can be converted into a string.
(as-string this)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |