cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Domains.Runtime

Description

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.

Synopsis

Documentation

data PRuntimeGetExceptionDetails Source #

This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown.

Parameters of the getExceptionDetails command.

Constructors

PRuntimeGetExceptionDetails 

Fields

data PRuntimeRemoveBinding Source #

This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.

Parameters of the removeBinding command.

data PRuntimeAddBinding Source #

If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

Parameters of the addBinding command.

Constructors

PRuntimeAddBinding 

Fields

data PRuntimeTerminateExecution Source #

Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.

Parameters of the terminateExecution command.

data PRuntimeSetMaxCallStackSizeToCapture Source #

Parameters of the setMaxCallStackSizeToCapture command.

Instances

Instances details
Eq PRuntimeSetMaxCallStackSizeToCapture Source # 
Instance details

Defined in CDP.Domains.Runtime

Show PRuntimeSetMaxCallStackSizeToCapture Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON PRuntimeSetMaxCallStackSizeToCapture Source # 
Instance details

Defined in CDP.Domains.Runtime

Command PRuntimeSetMaxCallStackSizeToCapture Source # 
Instance details

Defined in CDP.Domains.Runtime

type CommandResponse PRuntimeSetMaxCallStackSizeToCapture Source # 
Instance details

Defined in CDP.Domains.Runtime

data PRuntimeSetCustomObjectFormatterEnabled Source #

Parameters of the setCustomObjectFormatterEnabled command.

Instances

Instances details
Eq PRuntimeSetCustomObjectFormatterEnabled Source # 
Instance details

Defined in CDP.Domains.Runtime

Show PRuntimeSetCustomObjectFormatterEnabled Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON PRuntimeSetCustomObjectFormatterEnabled Source # 
Instance details

Defined in CDP.Domains.Runtime

Command PRuntimeSetCustomObjectFormatterEnabled Source # 
Instance details

Defined in CDP.Domains.Runtime

type CommandResponse PRuntimeSetCustomObjectFormatterEnabled Source # 
Instance details

Defined in CDP.Domains.Runtime

data PRuntimeSetAsyncCallStackDepth Source #

Enables or disables async call stacks tracking.

Parameters of the setAsyncCallStackDepth command.

Constructors

PRuntimeSetAsyncCallStackDepth 

Fields

data PRuntimeRunScript Source #

Runs script with given id in a given context.

Parameters of the runScript command.

Constructors

PRuntimeRunScript 

Fields

data PRuntimeRunIfWaitingForDebugger Source #

Tells inspected instance to run if it was waiting for debugger to attach.

Parameters of the runIfWaitingForDebugger command.

data PRuntimeReleaseObjectGroup Source #

Releases all remote objects that belong to a given group.

Parameters of the releaseObjectGroup command.

Constructors

PRuntimeReleaseObjectGroup 

Fields

data PRuntimeQueryObjects Source #

Parameters of the queryObjects command.

Constructors

PRuntimeQueryObjects 

Fields

data PRuntimeGlobalLexicalScopeNames Source #

Returns all let, const and class variables from global scope.

Parameters of the globalLexicalScopeNames command.

Constructors

PRuntimeGlobalLexicalScopeNames 

Fields

data PRuntimeGetProperties Source #

Returns properties of a given object. Object group of the result is inherited from the target object.

Parameters of the getProperties command.

Constructors

PRuntimeGetProperties 

Fields

data PRuntimeEvaluate Source #

Evaluates expression on global object.

Parameters of the evaluate command.

Constructors

PRuntimeEvaluate 

Fields

data PRuntimeEnable Source #

Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.

Parameters of the enable command.

Constructors

PRuntimeEnable 

data PRuntimeDiscardConsoleEntries Source #

Discards collected exceptions and console API calls.

Parameters of the discardConsoleEntries command.

data PRuntimeCompileScript Source #

Compiles expression.

Parameters of the compileScript command.

Constructors

PRuntimeCompileScript 

Fields

data PRuntimeCallFunctionOn Source #

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

Parameters of the callFunctionOn command.

Constructors

PRuntimeCallFunctionOn 

Fields

data PRuntimeAwaitPromise Source #

Add handler to promise with given promise object id.

Parameters of the awaitPromise command.

Constructors

PRuntimeAwaitPromise 

Fields

data RuntimeConsoleAPICalled Source #

Constructors

RuntimeConsoleAPICalled 

Fields

data RuntimeConsoleAPICalledType Source #

Type of the consoleAPICalled event.

Instances

Instances details
Eq RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeConsoleAPICalledType Source # 
Instance details

Defined in CDP.Domains.Runtime

type RuntimeUniqueDebuggerId = Text Source #

Type UniqueDebuggerId. Unique identifier of current debugger.

data RuntimeStackTrace Source #

Type StackTrace. Call frames for assertions or error messages.

Constructors

RuntimeStackTrace 

Fields

data RuntimeCallFrame Source #

Type CallFrame. Stack entry for runtime errors and assertions.

Constructors

RuntimeCallFrame 

Fields

type RuntimeTimeDelta = Double Source #

Type TimeDelta. Number of milliseconds.

type RuntimeTimestamp = Double Source #

Type Timestamp. Number of milliseconds since epoch.

data RuntimeExceptionDetails Source #

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

Constructors

RuntimeExceptionDetails 

Fields

data RuntimeExecutionContextDescription Source #

Type ExecutionContextDescription. Description of an isolated world.

Constructors

RuntimeExecutionContextDescription 

Fields

type RuntimeExecutionContextId = Int Source #

Type ExecutionContextId. Id of an execution context.

data RuntimeCallArgument Source #

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

Constructors

RuntimeCallArgument 

Fields

data RuntimePrivatePropertyDescriptor Source #

Type PrivatePropertyDescriptor. Object private field descriptor.

Constructors

RuntimePrivatePropertyDescriptor 

Fields

data RuntimeInternalPropertyDescriptor Source #

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

Constructors

RuntimeInternalPropertyDescriptor 

Fields

data RuntimePropertyDescriptor Source #

Type PropertyDescriptor. Object property descriptor.

Constructors

RuntimePropertyDescriptor 

Fields

data RuntimePropertyPreview Source #

Constructors

RuntimePropertyPreview 

Fields

data RuntimePropertyPreviewSubtype Source #

Instances

Instances details
Eq RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimePropertyPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

data RuntimePropertyPreviewType Source #

Instances

Instances details
Eq RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimePropertyPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

data RuntimeObjectPreview Source #

Constructors

RuntimeObjectPreview 

Fields

data RuntimeObjectPreviewSubtype Source #

Instances

Instances details
Eq RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeObjectPreviewSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

data RuntimeObjectPreviewType Source #

Type ObjectPreview. Object containing abbreviated remote object value.

Instances

Instances details
Eq RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeObjectPreviewType Source # 
Instance details

Defined in CDP.Domains.Runtime

data RuntimeCustomPreview Source #

Constructors

RuntimeCustomPreview 

Fields

  • runtimeCustomPreviewHeader :: Text

    The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.

  • runtimeCustomPreviewBodyGetterId :: Maybe RuntimeRemoteObjectId

    If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.

data RuntimeRemoteObject Source #

Constructors

RuntimeRemoteObject 

Fields

data RuntimeRemoteObjectSubtype Source #

Instances

Instances details
Eq RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeRemoteObjectSubtype Source # 
Instance details

Defined in CDP.Domains.Runtime

data RuntimeRemoteObjectType Source #

Type RemoteObject. Mirror object referencing original JavaScript object.

Instances

Instances details
Eq RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeRemoteObjectType Source # 
Instance details

Defined in CDP.Domains.Runtime

type RuntimeUnserializableValue = Text Source #

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

type RuntimeRemoteObjectId = Text Source #

Type RemoteObjectId. Unique object identifier.

data RuntimeWebDriverValueType Source #

Type WebDriverValue. Represents the value serialiazed by the WebDriver BiDi specification https://w3c.github.io/webdriver-bidi.

Instances

Instances details
Eq RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

Ord RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

Read RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

Show RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

ToJSON RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

FromJSON RuntimeWebDriverValueType Source # 
Instance details

Defined in CDP.Domains.Runtime

type RuntimeScriptId = Text Source #

Type ScriptId. Unique script identifier.