pl.wendigo.chrome / DevToolsProtocol

DevToolsProtocol

open class DevToolsProtocol : Closeable (source)

DevToolsProtocol represents all operations on all domains that can be issued to control Chrome via DevTools Protocol.

Link
https://github.com/chromedevtools/devtools-protocol

Link
https://chromedevtools.github.io/devtools-protocol/

Properties

Accessibility

val Accessibility: AccessibilityOperations

Lazily returns AccessibilityOperations domain object allowing to perform operations on Accessibility protocol domain.

Animation

val Animation: AnimationOperations

Lazily returns AnimationOperations domain object allowing to perform operations on Animation protocol domain.

ApplicationCache

val ApplicationCache: ApplicationCacheOperations

Lazily returns ApplicationCacheOperations domain object allowing to perform operations on ApplicationCache protocol domain.

Audits

val Audits: AuditsOperations

Audits domain allows investigation of page violations and possible improvements.

BackgroundService

val BackgroundService: BackgroundServiceOperations

Defines events for background web platform features.

Browser

val Browser: BrowserOperations

The Browser domain defines methods and events for browser managing.

CacheStorage

val CacheStorage: CacheStorageOperations

Lazily returns CacheStorageOperations domain object allowing to perform operations on CacheStorage protocol domain.

Cast

val Cast: CastOperations

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

Console

val Console: ConsoleOperations

This domain is deprecated - use Runtime or Log instead.

CSS

val CSS: CSSOperations

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.

Database

val Database: DatabaseOperations

Lazily returns DatabaseOperations domain object allowing to perform operations on Database protocol domain.

Debugger

val Debugger: DebuggerOperations

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

DeviceOrientation

val DeviceOrientation: DeviceOrientationOperations

Lazily returns DeviceOrientationOperations domain object allowing to perform operations on DeviceOrientation protocol domain.

DOM

val DOM: DOMOperations

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.

DOMDebugger

val DOMDebugger: DOMDebuggerOperations

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.

DOMSnapshot

val DOMSnapshot: DOMSnapshotOperations

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

DOMStorage

val DOMStorage: DOMStorageOperations

Query and modify DOM storage.

Emulation

val Emulation: EmulationOperations

This domain emulates different environments for the page.

Fetch

val Fetch: FetchOperations

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

HeadlessExperimental

val HeadlessExperimental: HeadlessExperimentalOperations

This domain provides experimental commands only supported in headless mode.

HeapProfiler

val HeapProfiler: HeapProfilerOperations

Lazily returns HeapProfilerOperations domain object allowing to perform operations on HeapProfiler protocol domain.

IndexedDB

val IndexedDB: IndexedDBOperations

Lazily returns IndexedDBOperations domain object allowing to perform operations on IndexedDB protocol domain.

Input

val Input: InputOperations

Lazily returns InputOperations domain object allowing to perform operations on Input protocol domain.

Inspector

val Inspector: InspectorOperations

Lazily returns InspectorOperations domain object allowing to perform operations on Inspector protocol domain.

IO

val IO: IOOperations

Input/Output operations for streams produced by DevTools.

LayerTree

val LayerTree: LayerTreeOperations

Lazily returns LayerTreeOperations domain object allowing to perform operations on LayerTree protocol domain.

Log

val Log: LogOperations

Provides access to log entries.

Media

val Media: MediaOperations

This domain allows detailed inspection of media elements

Memory

val Memory: MemoryOperations

Lazily returns MemoryOperations domain object allowing to perform operations on Memory protocol domain.

Network

val Network: NetworkOperations

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.

Overlay

val Overlay: OverlayOperations

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

Page

val Page: PageOperations

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

Performance

val Performance: PerformanceOperations

Lazily returns PerformanceOperations domain object allowing to perform operations on Performance protocol domain.

Profiler

val Profiler: ProfilerOperations

Lazily returns ProfilerOperations domain object allowing to perform operations on Profiler protocol domain.

Runtime

val Runtime: RuntimeOperations

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.

Schema

val Schema: SchemaOperations

This domain is deprecated.

Security

val Security: SecurityOperations

Security

ServiceWorker

val ServiceWorker: ServiceWorkerOperations

Lazily returns ServiceWorkerOperations domain object allowing to perform operations on ServiceWorker protocol domain.

Storage

val Storage: StorageOperations

Lazily returns StorageOperations domain object allowing to perform operations on Storage protocol domain.

SystemInfo

val SystemInfo: SystemInfoOperations

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

Target

val Target: TargetOperations

Supports additional targets discovery and allows to attach to them.

Tethering

val Tethering: TetheringOperations

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

Tracing

val Tracing: TracingOperations

Lazily returns TracingOperations domain object allowing to perform operations on Tracing protocol domain.

WebAudio

val WebAudio: WebAudioOperations

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

WebAuthn

val WebAuthn: WebAuthnOperations

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

Functions

close

open fun close(): Unit

Closes session.

Events

fun Events(): Flowable<Event>

Returns Flowable capturing all events.

Inheritors

Session

class Session : DevToolsProtocol

Represents browser session target