chrome-devtools-kotlin / org.hildan.chrome.devtools.protocol / ChromeTargetSession

ChromeTargetSession

class ChromeTargetSession : ChromeDPSession

Properties

accessibility

val accessibility: AccessibilityDomain

animation

val animation: AnimationDomain

applicationCache

val applicationCache: ApplicationCacheDomain

audits

Audits domain allows investigation of page violations and possible improvements.

val audits: AuditsDomain

backgroundService

Defines events for background web platform features.

val backgroundService: BackgroundServiceDomain

browser

The Browser domain defines methods and events for browser managing.

val browser: BrowserDomain

browserContextId

val browserContextId: BrowserContextID?

cacheStorage

val cacheStorage: CacheStorageDomain

cast

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

val cast: CastDomain

console

This domain is deprecated - use Runtime or Log instead.

val console: ConsoleDomain

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.

val css: CSSDomain

database

val database: DatabaseDomain

debugger

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

val debugger: DebuggerDomain

deviceOrientation

val deviceOrientation: DeviceOrientationDomain

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.

val dom: DOMDomain

domDebugger

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.

val domDebugger: DOMDebuggerDomain

domSnapshot

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

val domSnapshot: DOMSnapshotDomain

domStorage

Query and modify DOM storage.

val domStorage: DOMStorageDomain

emulation

This domain emulates different environments for the page.

val emulation: EmulationDomain

fetch

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

val fetch: FetchDomain

headlessExperimental

This domain provides experimental commands only supported in headless mode.

val headlessExperimental: HeadlessExperimentalDomain

heapProfiler

val heapProfiler: HeapProfilerDomain

indexedDB

val indexedDB: IndexedDBDomain

input

val input: InputDomain

inspector

val inspector: InspectorDomain

io

Input/Output operations for streams produced by DevTools.

val io: IODomain

layerTree

val layerTree: LayerTreeDomain

log

Provides access to log entries.

val log: LogDomain

media

This domain allows detailed inspection of media elements

val media: MediaDomain

memory

val memory: MemoryDomain

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.

val network: NetworkDomain

overlay

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

val overlay: OverlayDomain

page

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

val page: PageDomain

parent

val parent: ChromeBrowserSession

performance

val performance: PerformanceDomain

profiler

val profiler: ProfilerDomain

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.

val runtime: RuntimeDomain

schema

This domain is deprecated.

val schema: SchemaDomain

security

Security

val security: SecurityDomain

serviceWorker

val serviceWorker: ServiceWorkerDomain

storage

val storage: StorageDomain

systemInfo

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

val systemInfo: SystemInfoDomain

targetId

val targetId: TargetID

tracing

val tracing: TracingDomain

webAudio

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

val webAudio: WebAudioDomain

webAuthn

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

val webAuthn: WebAuthnDomain