Clj-chrome-devtools 20220405

Released under the MIT License

Clojure API for Chrome DevTools remote.

Installation

To install, add the following dependency to your project or build file:

[clj-chrome-devtools "20220405"]

Namespaces

clj-chrome-devtools.automation

Higher level automation convenience API

clj-chrome-devtools.automation

Higher level automation convenience API

clj-chrome-devtools.automation.fixture

Provides a clojure.test fixture for starting a new Chrome headless instance and an automation context for it.

clj-chrome-devtools.automation.fixture

Provides a clojure.test fixture for starting a new Chrome headless instance and an automation context for it.

clj-chrome-devtools.automation.launcher

Launch a headless Chrome for automation purposes.

clj-chrome-devtools.automation.launcher

Launch a headless Chrome for automation purposes.

clj-chrome-devtools.commands.accessibility

clj-chrome-devtools.commands.accessibility

clj-chrome-devtools.commands.animation

clj-chrome-devtools.commands.animation

clj-chrome-devtools.commands.application-cache

clj-chrome-devtools.commands.application-cache

clj-chrome-devtools.commands.audits

Audits domain allows investigation of page violations and possible improvements.

Public variables and functions:

clj-chrome-devtools.commands.audits

Audits domain allows investigation of page violations and possible improvements.

Public variables and functions:

clj-chrome-devtools.commands.background-service

Defines events for background web platform features.

Public variables and functions:

clj-chrome-devtools.commands.background-service

Defines events for background web platform features.

Public variables and functions:

clj-chrome-devtools.commands.browser

The Browser domain defines methods and events for browser managing.

clj-chrome-devtools.commands.browser

The Browser domain defines methods and events for browser managing.

clj-chrome-devtools.commands.cache-storage

clj-chrome-devtools.commands.cache-storage

clj-chrome-devtools.commands.cast

A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.

clj-chrome-devtools.commands.cast

A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.

clj-chrome-devtools.commands.console

This domain is deprecated - use Runtime or Log instead.

Public variables and functions:

clj-chrome-devtools.commands.console

This domain is deprecated - use Runtime or Log instead.

Public variables and functions:

clj-chrome-devtools.commands.css

This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). A client can also keep track of stylesheets via the styleSheetAdded/styleSheetRemoved events and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.

clj-chrome-devtools.commands.css

This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). A client can also keep track of stylesheets via the styleSheetAdded/styleSheetRemoved events and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.

clj-chrome-devtools.commands.database

Public variables and functions:

clj-chrome-devtools.commands.database

Public variables and functions:

clj-chrome-devtools.commands.debugger

Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.

clj-chrome-devtools.commands.debugger

Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.

clj-chrome-devtools.commands.device-orientation

clj-chrome-devtools.commands.device-orientation

clj-chrome-devtools.commands.dom

This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client’s responsibility to collect information about the nodes that were sent to the client.

Note that iframe owner elements will return corresponding document elements as their child nodes.

clj-chrome-devtools.commands.dom

This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client’s responsibility to collect information about the nodes that were sent to the client.

Note that iframe owner elements will return corresponding document elements as their child nodes.

clj-chrome-devtools.commands.dom-debugger

DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

clj-chrome-devtools.commands.dom-debugger

DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

clj-chrome-devtools.commands.dom-snapshot

This domain facilitates obtaining document snapshots with DOM, layout, and style information.

Public variables and functions:

clj-chrome-devtools.commands.dom-snapshot

This domain facilitates obtaining document snapshots with DOM, layout, and style information.

Public variables and functions:

clj-chrome-devtools.commands.dom-storage

Query and modify DOM storage.

clj-chrome-devtools.commands.dom-storage

Query and modify DOM storage.

clj-chrome-devtools.commands.emulation

This domain emulates different environments for the page.

clj-chrome-devtools.commands.emulation

This domain emulates different environments for the page.

clj-chrome-devtools.commands.event-breakpoints

EventBreakpoints permits setting breakpoints on particular operations and events in targets that run JavaScript but do not have a DOM. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

clj-chrome-devtools.commands.event-breakpoints

EventBreakpoints permits setting breakpoints on particular operations and events in targets that run JavaScript but do not have a DOM. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

clj-chrome-devtools.commands.fetch

A domain for letting clients substitute browser’s network layer with client code.

clj-chrome-devtools.commands.fetch

A domain for letting clients substitute browser’s network layer with client code.

clj-chrome-devtools.commands.headless-experimental

This domain provides experimental commands only supported in headless mode.

Public variables and functions:

clj-chrome-devtools.commands.headless-experimental

This domain provides experimental commands only supported in headless mode.

Public variables and functions:

clj-chrome-devtools.commands.heap-profiler

clj-chrome-devtools.commands.heap-profiler

clj-chrome-devtools.commands.indexed-db

clj-chrome-devtools.commands.indexed-db

clj-chrome-devtools.commands.input

clj-chrome-devtools.commands.input

clj-chrome-devtools.commands.inspector

Public variables and functions:

clj-chrome-devtools.commands.inspector

Public variables and functions:

clj-chrome-devtools.commands.io

Input/Output operations for streams produced by DevTools.

Public variables and functions:

clj-chrome-devtools.commands.io

Input/Output operations for streams produced by DevTools.

Public variables and functions:

clj-chrome-devtools.commands.layer-tree

clj-chrome-devtools.commands.layer-tree

clj-chrome-devtools.commands.log

Provides access to log entries.

clj-chrome-devtools.commands.log

Provides access to log entries.

clj-chrome-devtools.commands.media

This domain allows detailed inspection of media elements

Public variables and functions:

clj-chrome-devtools.commands.media

This domain allows detailed inspection of media elements

Public variables and functions:

clj-chrome-devtools.commands.memory

clj-chrome-devtools.commands.memory

clj-chrome-devtools.commands.network

Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.

clj-chrome-devtools.commands.network

Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.

clj-chrome-devtools.commands.overlay

This domain provides various functionality related to drawing atop the inspected page.

clj-chrome-devtools.commands.overlay

This domain provides various functionality related to drawing atop the inspected page.

clj-chrome-devtools.commands.page

Actions and events related to the inspected page belong to the page domain.

clj-chrome-devtools.commands.page

Actions and events related to the inspected page belong to the page domain.

clj-chrome-devtools.commands.performance

Public variables and functions:

clj-chrome-devtools.commands.performance

Public variables and functions:

clj-chrome-devtools.commands.performance-timeline

Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.

Public variables and functions:

clj-chrome-devtools.commands.performance-timeline

Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.

Public variables and functions:

clj-chrome-devtools.commands.profiler

clj-chrome-devtools.commands.profiler

clj-chrome-devtools.commands.runtime

Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.

clj-chrome-devtools.commands.runtime

Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.

clj-chrome-devtools.commands.schema

This domain is deprecated.

Public variables and functions:

clj-chrome-devtools.commands.schema

This domain is deprecated.

Public variables and functions:

clj-chrome-devtools.commands.security

Security

clj-chrome-devtools.commands.security

Security

clj-chrome-devtools.commands.service-worker

clj-chrome-devtools.commands.service-worker

clj-chrome-devtools.commands.storage

clj-chrome-devtools.commands.storage

clj-chrome-devtools.commands.system-info

The SystemInfo domain defines methods and events for querying low-level system information.

Public variables and functions:

clj-chrome-devtools.commands.system-info

The SystemInfo domain defines methods and events for querying low-level system information.

Public variables and functions:

clj-chrome-devtools.commands.target

Supports additional targets discovery and allows to attach to them.

clj-chrome-devtools.commands.target

Supports additional targets discovery and allows to attach to them.

clj-chrome-devtools.commands.tethering

The Tethering domain defines methods and events for browser port binding.

Public variables and functions:

clj-chrome-devtools.commands.tethering

The Tethering domain defines methods and events for browser port binding.

Public variables and functions:

clj-chrome-devtools.commands.tracing

clj-chrome-devtools.commands.tracing

clj-chrome-devtools.commands.web-audio

This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/

Public variables and functions:

clj-chrome-devtools.commands.web-audio

This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/

Public variables and functions:

clj-chrome-devtools.commands.web-authn

This domain allows configuring virtual authenticators to test the WebAuthn API.

clj-chrome-devtools.commands.web-authn

This domain allows configuring virtual authenticators to test the WebAuthn API.

clj-chrome-devtools.core

Public variables and functions:

clj-chrome-devtools.core

Public variables and functions:

clj-chrome-devtools.events

Listening to events coming from Chrome.

clj-chrome-devtools.events

Listening to events coming from Chrome.

clj-chrome-devtools.impl.command

Implementation utils for commands

Public variables and functions:

clj-chrome-devtools.impl.command

Implementation utils for commands

Public variables and functions:

clj-chrome-devtools.impl.connection

The remote debugging WebSocket connection

clj-chrome-devtools.impl.connection

The remote debugging WebSocket connection

clj-chrome-devtools.impl.define

Macro for defining a domain of commands.

clj-chrome-devtools.impl.define

Macro for defining a domain of commands.

clj-chrome-devtools.impl.util

Public variables and functions:

clj-chrome-devtools.impl.util

Public variables and functions:

clj-chrome-devtools.protocol-definitions

Loads CDP protocol definition JSON files for consumption by def macros.

clj-chrome-devtools.protocol-definitions

Loads CDP protocol definition JSON files for consumption by def macros.