pl.wendigo.chrome.api.runtime

Package pl.wendigo.chrome.api.runtime

Contains DevTools Protocol Runtime domain implementation accessible via RuntimeOperations class.

Types

AddBindingRequest

data class AddBindingRequest

Represents request frame that can be used with Runtime#addBinding operation call.

AwaitPromiseRequest

data class AwaitPromiseRequest

Represents request frame that can be used with Runtime#awaitPromise operation call.

AwaitPromiseResponse

data class AwaitPromiseResponse

Represents response frame that is returned from Runtime#awaitPromise operation call. Add handler to promise with given promise object id.

BindingCalledEvent

data class BindingCalledEvent : Event

Notification is issued every time when binding is called.

CallArgument

data class CallArgument

Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.

CallFrame

data class CallFrame

Stack entry for runtime errors and assertions.

CallFunctionOnRequest

data class CallFunctionOnRequest

Represents request frame that can be used with Runtime#callFunctionOn operation call.

CallFunctionOnResponse

data class CallFunctionOnResponse

Represents response frame that is returned from Runtime#callFunctionOn operation call. Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

CompileScriptRequest

data class CompileScriptRequest

Represents request frame that can be used with Runtime#compileScript operation call.

CompileScriptResponse

data class CompileScriptResponse

Represents response frame that is returned from Runtime#compileScript operation call. Compiles expression.

ConsoleAPICalledEvent

data class ConsoleAPICalledEvent : Event

Issued when console API was called.

CustomPreview

data class CustomPreview

EntryPreview

data class EntryPreview

EvaluateRequest

data class EvaluateRequest

Represents request frame that can be used with Runtime#evaluate operation call.

EvaluateResponse

data class EvaluateResponse

Represents response frame that is returned from Runtime#evaluate operation call. Evaluates expression on global object.

ExceptionDetails

data class ExceptionDetails

Detailed information about exception (or error) that was thrown during script compilation or execution.

ExceptionRevokedEvent

data class ExceptionRevokedEvent : Event

Issued when unhandled exception was revoked.

ExceptionThrownEvent

data class ExceptionThrownEvent : Event

Issued when exception was thrown and unhandled.

ExecutionContextCreatedEvent

data class ExecutionContextCreatedEvent : Event

Issued when new execution context is created.

ExecutionContextDescription

data class ExecutionContextDescription

Description of an isolated world.

ExecutionContextDestroyedEvent

data class ExecutionContextDestroyedEvent : Event

Issued when execution context is destroyed.

GetHeapUsageResponse

data class GetHeapUsageResponse

Represents response frame that is returned from Runtime#getHeapUsage operation call. Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

GetIsolateIdResponse

data class GetIsolateIdResponse

Represents response frame that is returned from Runtime#getIsolateId operation call. Returns the isolate id.

GetPropertiesRequest

data class GetPropertiesRequest

Represents request frame that can be used with Runtime#getProperties operation call.

GetPropertiesResponse

data class GetPropertiesResponse

Represents response frame that is returned from Runtime#getProperties operation call. Returns properties of a given object. Object group of the result is inherited from the target object.

GlobalLexicalScopeNamesRequest

data class GlobalLexicalScopeNamesRequest

Represents request frame that can be used with Runtime#globalLexicalScopeNames operation call.

GlobalLexicalScopeNamesResponse

data class GlobalLexicalScopeNamesResponse

Represents response frame that is returned from Runtime#globalLexicalScopeNames operation call. Returns all let, const and class variables from global scope.

InspectRequestedEvent

data class InspectRequestedEvent : Event

Issued when object should be inspected (for example, as a result of inspect() command line API call).

InternalPropertyDescriptor

data class InternalPropertyDescriptor

Object internal property descriptor. This property isn't normally visible in JavaScript code.

ObjectPreview

data class ObjectPreview

Object containing abbreviated remote object value.

PrivatePropertyDescriptor

data class PrivatePropertyDescriptor

Object private field descriptor.

PropertyDescriptor

data class PropertyDescriptor

Object property descriptor.

PropertyPreview

data class PropertyPreview

QueryObjectsRequest

data class QueryObjectsRequest

Represents request frame that can be used with Runtime#queryObjects operation call.

QueryObjectsResponse

data class QueryObjectsResponse

Represents response frame that is returned from Runtime#queryObjects operation call.

ReleaseObjectGroupRequest

data class ReleaseObjectGroupRequest

Represents request frame that can be used with Runtime#releaseObjectGroup operation call.

ReleaseObjectRequest

data class ReleaseObjectRequest

Represents request frame that can be used with Runtime#releaseObject operation call.

RemoteObject

data class RemoteObject

Mirror object referencing original JavaScript object.

RemoveBindingRequest

data class RemoveBindingRequest

Represents request frame that can be used with Runtime#removeBinding operation call.

RunScriptRequest

data class RunScriptRequest

Represents request frame that can be used with Runtime#runScript operation call.

RunScriptResponse

data class RunScriptResponse

Represents response frame that is returned from Runtime#runScript operation call. Runs script with given id in a given context.

RuntimeOperations

class 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.

SetAsyncCallStackDepthRequest

data class SetAsyncCallStackDepthRequest

Represents request frame that can be used with Runtime#setAsyncCallStackDepth operation call.

SetCustomObjectFormatterEnabledRequest

data class SetCustomObjectFormatterEnabledRequest

Represents request frame that can be used with Runtime#setCustomObjectFormatterEnabled operation call.

SetMaxCallStackSizeToCaptureRequest

data class SetMaxCallStackSizeToCaptureRequest

Represents request frame that can be used with Runtime#setMaxCallStackSizeToCapture operation call.

StackTrace

data class StackTrace

Call frames for assertions or error messages.

StackTraceId

data class StackTraceId

If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages.

Type Aliases

ExecutionContextId

typealias ExecutionContextId = Int

Id of an execution context.

RemoteObjectId

typealias RemoteObjectId = String

Unique object identifier.

ScriptId

typealias ScriptId = String

Unique script identifier.

TimeDelta

typealias TimeDelta = Double

Number of milliseconds.

Timestamp

typealias Timestamp = Double

Number of milliseconds since epoch.

UniqueDebuggerId

typealias UniqueDebuggerId = String

Unique identifier of current debugger.

UnserializableValue

typealias UnserializableValue = String

Primitive value which cannot be JSON-stringified. Includes values -0, NaN, Infinity, -Infinity, and bigint literals.