cdproto: github.com/chromedp/cdproto/runtime Index | Files

package runtime

import "github.com/chromedp/cdproto/runtime"

Package runtime provides the Chrome DevTools Protocol commands, types, and events for the Runtime domain.

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.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go runtime.go types.go

Constants

const (
    CommandAwaitPromise                    = "Runtime.awaitPromise"
    CommandCallFunctionOn                  = "Runtime.callFunctionOn"
    CommandCompileScript                   = "Runtime.compileScript"
    CommandDisable                         = "Runtime.disable"
    CommandDiscardConsoleEntries           = "Runtime.discardConsoleEntries"
    CommandEnable                          = "Runtime.enable"
    CommandEvaluate                        = "Runtime.evaluate"
    CommandGetIsolateID                    = "Runtime.getIsolateId"
    CommandGetHeapUsage                    = "Runtime.getHeapUsage"
    CommandGetProperties                   = "Runtime.getProperties"
    CommandGlobalLexicalScopeNames         = "Runtime.globalLexicalScopeNames"
    CommandQueryObjects                    = "Runtime.queryObjects"
    CommandReleaseObject                   = "Runtime.releaseObject"
    CommandReleaseObjectGroup              = "Runtime.releaseObjectGroup"
    CommandRunIfWaitingForDebugger         = "Runtime.runIfWaitingForDebugger"
    CommandRunScript                       = "Runtime.runScript"
    CommandSetCustomObjectFormatterEnabled = "Runtime.setCustomObjectFormatterEnabled"
    CommandSetMaxCallStackSizeToCapture    = "Runtime.setMaxCallStackSizeToCapture"
    CommandTerminateExecution              = "Runtime.terminateExecution"
    CommandAddBinding                      = "Runtime.addBinding"
    CommandRemoveBinding                   = "Runtime.removeBinding"
)

Command names.

type APIType Uses

type APIType string

APIType type of the call.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-consoleAPICalled

const (
    APITypeLog                 APIType = "log"
    APITypeDebug               APIType = "debug"
    APITypeInfo                APIType = "info"
    APITypeError               APIType = "error"
    APITypeWarning             APIType = "warning"
    APITypeDir                 APIType = "dir"
    APITypeDirxml              APIType = "dirxml"
    APITypeTable               APIType = "table"
    APITypeTrace               APIType = "trace"
    APITypeClear               APIType = "clear"
    APITypeStartGroup          APIType = "startGroup"
    APITypeStartGroupCollapsed APIType = "startGroupCollapsed"
    APITypeEndGroup            APIType = "endGroup"
    APITypeAssert              APIType = "assert"
    APITypeProfile             APIType = "profile"
    APITypeProfileEnd          APIType = "profileEnd"
    APITypeCount               APIType = "count"
    APITypeTimeEnd             APIType = "timeEnd"
)

APIType values.

func (APIType) MarshalEasyJSON Uses

func (t APIType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (APIType) MarshalJSON Uses

func (t APIType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (APIType) String Uses

func (t APIType) String() string

String returns the APIType as string value.

func (*APIType) UnmarshalEasyJSON Uses

func (t *APIType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*APIType) UnmarshalJSON Uses

func (t *APIType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type AddBindingParams Uses

type AddBindingParams struct {
    Name                 string             `json:"name"`
    ExecutionContextID   ExecutionContextID `json:"executionContextId,omitempty"`   // If specified, the binding would only be exposed to the specified execution context. If omitted and executionContextName is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with executionContextName.
    ExecutionContextName string             `json:"executionContextName,omitempty"` // If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ExecutionContext.name and worldName parameter to Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive with executionContextId.
}

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

func AddBinding Uses

func AddBinding(name string) *AddBindingParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-addBinding

parameters:

name

func (*AddBindingParams) Do Uses

func (p *AddBindingParams) Do(ctx context.Context) (err error)

Do executes Runtime.addBinding against the provided context.

func (AddBindingParams) MarshalEasyJSON Uses

func (v AddBindingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddBindingParams) MarshalJSON Uses

func (v AddBindingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddBindingParams) UnmarshalEasyJSON Uses

func (v *AddBindingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddBindingParams) UnmarshalJSON Uses

func (v *AddBindingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (AddBindingParams) WithExecutionContextID Uses

func (p AddBindingParams) WithExecutionContextID(executionContextID ExecutionContextID) *AddBindingParams

WithExecutionContextID if specified, the binding would only be exposed to the specified execution context. If omitted and executionContextName is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with executionContextName.

func (AddBindingParams) WithExecutionContextName Uses

func (p AddBindingParams) WithExecutionContextName(executionContextName string) *AddBindingParams

WithExecutionContextName if specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ExecutionContext.name and worldName parameter to Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive with executionContextId.

type AwaitPromiseParams Uses

type AwaitPromiseParams struct {
    PromiseObjectID RemoteObjectID `json:"promiseObjectId"`           // Identifier of the promise.
    ReturnByValue   bool           `json:"returnByValue,omitempty"`   // Whether the result is expected to be a JSON object that should be sent by value.
    GeneratePreview bool           `json:"generatePreview,omitempty"` // Whether preview should be generated for the result.
}

AwaitPromiseParams add handler to promise with given promise object id.

func AwaitPromise Uses

func AwaitPromise(promiseObjectID RemoteObjectID) *AwaitPromiseParams

AwaitPromise add handler to promise with given promise object id.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-awaitPromise

parameters:

promiseObjectID - Identifier of the promise.

func (*AwaitPromiseParams) Do Uses

func (p *AwaitPromiseParams) Do(ctx context.Context) (result *RemoteObject, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.awaitPromise against the provided context.

returns:

result - Promise result. Will contain rejected value if promise was rejected.
exceptionDetails - Exception details if stack strace is available.

func (AwaitPromiseParams) MarshalEasyJSON Uses

func (v AwaitPromiseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AwaitPromiseParams) MarshalJSON Uses

func (v AwaitPromiseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AwaitPromiseParams) UnmarshalEasyJSON Uses

func (v *AwaitPromiseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AwaitPromiseParams) UnmarshalJSON Uses

func (v *AwaitPromiseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (AwaitPromiseParams) WithGeneratePreview Uses

func (p AwaitPromiseParams) WithGeneratePreview(generatePreview bool) *AwaitPromiseParams

WithGeneratePreview whether preview should be generated for the result.

func (AwaitPromiseParams) WithReturnByValue Uses

func (p AwaitPromiseParams) WithReturnByValue(returnByValue bool) *AwaitPromiseParams

WithReturnByValue whether the result is expected to be a JSON object that should be sent by value.

type AwaitPromiseReturns Uses

type AwaitPromiseReturns struct {
    Result           *RemoteObject     `json:"result,omitempty"`           // Promise result. Will contain rejected value if promise was rejected.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details if stack strace is available.
}

AwaitPromiseReturns return values.

func (AwaitPromiseReturns) MarshalEasyJSON Uses

func (v AwaitPromiseReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AwaitPromiseReturns) MarshalJSON Uses

func (v AwaitPromiseReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AwaitPromiseReturns) UnmarshalEasyJSON Uses

func (v *AwaitPromiseReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AwaitPromiseReturns) UnmarshalJSON Uses

func (v *AwaitPromiseReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CallArgument Uses

type CallArgument struct {
    Value               easyjson.RawMessage `json:"value,omitempty"`               // Primitive value or serializable javascript object.
    UnserializableValue UnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified.
    ObjectID            RemoteObjectID      `json:"objectId,omitempty"`            // Remote object handle.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-CallArgument

func (CallArgument) MarshalEasyJSON Uses

func (v CallArgument) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallArgument) MarshalJSON Uses

func (v CallArgument) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CallArgument) UnmarshalEasyJSON Uses

func (v *CallArgument) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallArgument) UnmarshalJSON Uses

func (v *CallArgument) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CallFrame Uses

type CallFrame struct {
    FunctionName string   `json:"functionName"` // JavaScript function name.
    ScriptID     ScriptID `json:"scriptId"`     // JavaScript script id.
    URL          string   `json:"url"`          // JavaScript script name or url.
    LineNumber   int64    `json:"lineNumber"`   // JavaScript script line number (0-based).
    ColumnNumber int64    `json:"columnNumber"` // JavaScript script column number (0-based).
}

CallFrame stack entry for runtime errors and assertions.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-CallFrame

func (CallFrame) MarshalEasyJSON Uses

func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallFrame) MarshalJSON Uses

func (v CallFrame) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CallFrame) UnmarshalEasyJSON Uses

func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallFrame) UnmarshalJSON Uses

func (v *CallFrame) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CallFunctionOnParams Uses

type CallFunctionOnParams struct {
    FunctionDeclaration string             `json:"functionDeclaration"`          // Declaration of the function to call.
    ObjectID            RemoteObjectID     `json:"objectId,omitempty"`           // Identifier of the object to call function on. Either objectId or executionContextId should be specified.
    Arguments           []*CallArgument    `json:"arguments,omitempty"`          // Call arguments. All call arguments must belong to the same JavaScript world as the target object.
    Silent              bool               `json:"silent,omitempty"`             // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
    ReturnByValue       bool               `json:"returnByValue,omitempty"`      // Whether the result is expected to be a JSON object which should be sent by value.
    GeneratePreview     bool               `json:"generatePreview,omitempty"`    // Whether preview should be generated for the result.
    UserGesture         bool               `json:"userGesture,omitempty"`        // Whether execution should be treated as initiated by user in the UI.
    AwaitPromise        bool               `json:"awaitPromise,omitempty"`       // Whether execution should await for resulting value and return once awaited promise is resolved.
    ExecutionContextID  ExecutionContextID `json:"executionContextId,omitempty"` // Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
    ObjectGroup         string             `json:"objectGroup,omitempty"`        // Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
}

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

func CallFunctionOn Uses

func CallFunctionOn(functionDeclaration string) *CallFunctionOnParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-callFunctionOn

parameters:

functionDeclaration - Declaration of the function to call.

func (*CallFunctionOnParams) Do Uses

func (p *CallFunctionOnParams) Do(ctx context.Context) (result *RemoteObject, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.callFunctionOn against the provided context.

returns:

result - Call result.
exceptionDetails - Exception details.

func (CallFunctionOnParams) MarshalEasyJSON Uses

func (v CallFunctionOnParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallFunctionOnParams) MarshalJSON Uses

func (v CallFunctionOnParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CallFunctionOnParams) UnmarshalEasyJSON Uses

func (v *CallFunctionOnParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallFunctionOnParams) UnmarshalJSON Uses

func (v *CallFunctionOnParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CallFunctionOnParams) WithArguments Uses

func (p CallFunctionOnParams) WithArguments(arguments []*CallArgument) *CallFunctionOnParams

WithArguments call arguments. All call arguments must belong to the same JavaScript world as the target object.

func (CallFunctionOnParams) WithAwaitPromise Uses

func (p CallFunctionOnParams) WithAwaitPromise(awaitPromise bool) *CallFunctionOnParams

WithAwaitPromise whether execution should await for resulting value and return once awaited promise is resolved.

func (CallFunctionOnParams) WithExecutionContextID Uses

func (p CallFunctionOnParams) WithExecutionContextID(executionContextID ExecutionContextID) *CallFunctionOnParams

WithExecutionContextID specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.

func (CallFunctionOnParams) WithGeneratePreview Uses

func (p CallFunctionOnParams) WithGeneratePreview(generatePreview bool) *CallFunctionOnParams

WithGeneratePreview whether preview should be generated for the result.

func (CallFunctionOnParams) WithObjectGroup Uses

func (p CallFunctionOnParams) WithObjectGroup(objectGroup string) *CallFunctionOnParams

WithObjectGroup symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.

func (CallFunctionOnParams) WithObjectID Uses

func (p CallFunctionOnParams) WithObjectID(objectID RemoteObjectID) *CallFunctionOnParams

WithObjectID identifier of the object to call function on. Either objectId or executionContextId should be specified.

func (CallFunctionOnParams) WithReturnByValue Uses

func (p CallFunctionOnParams) WithReturnByValue(returnByValue bool) *CallFunctionOnParams

WithReturnByValue whether the result is expected to be a JSON object which should be sent by value.

func (CallFunctionOnParams) WithSilent Uses

func (p CallFunctionOnParams) WithSilent(silent bool) *CallFunctionOnParams

WithSilent in silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

func (CallFunctionOnParams) WithUserGesture Uses

func (p CallFunctionOnParams) WithUserGesture(userGesture bool) *CallFunctionOnParams

WithUserGesture whether execution should be treated as initiated by user in the UI.

type CallFunctionOnReturns Uses

type CallFunctionOnReturns struct {
    Result           *RemoteObject     `json:"result,omitempty"`           // Call result.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

CallFunctionOnReturns return values.

func (CallFunctionOnReturns) MarshalEasyJSON Uses

func (v CallFunctionOnReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallFunctionOnReturns) MarshalJSON Uses

func (v CallFunctionOnReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CallFunctionOnReturns) UnmarshalEasyJSON Uses

func (v *CallFunctionOnReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallFunctionOnReturns) UnmarshalJSON Uses

func (v *CallFunctionOnReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CompileScriptParams Uses

type CompileScriptParams struct {
    Expression         string             `json:"expression"`                   // Expression to compile.
    SourceURL          string             `json:"sourceURL"`                    // Source url to be set for the script.
    PersistScript      bool               `json:"persistScript"`                // Specifies whether the compiled script should be persisted.
    ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
}

CompileScriptParams compiles expression.

func CompileScript Uses

func CompileScript(expression string, sourceURL string, persistScript bool) *CompileScriptParams

CompileScript compiles expression.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-compileScript

parameters:

expression - Expression to compile.
sourceURL - Source url to be set for the script.
persistScript - Specifies whether the compiled script should be persisted.

func (*CompileScriptParams) Do Uses

func (p *CompileScriptParams) Do(ctx context.Context) (scriptID ScriptID, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.compileScript against the provided context.

returns:

scriptID - Id of the script.
exceptionDetails - Exception details.

func (CompileScriptParams) MarshalEasyJSON Uses

func (v CompileScriptParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompileScriptParams) MarshalJSON Uses

func (v CompileScriptParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CompileScriptParams) UnmarshalEasyJSON Uses

func (v *CompileScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompileScriptParams) UnmarshalJSON Uses

func (v *CompileScriptParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CompileScriptParams) WithExecutionContextID Uses

func (p CompileScriptParams) WithExecutionContextID(executionContextID ExecutionContextID) *CompileScriptParams

WithExecutionContextID specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.

type CompileScriptReturns Uses

type CompileScriptReturns struct {
    ScriptID         ScriptID          `json:"scriptId,omitempty"`         // Id of the script.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

CompileScriptReturns return values.

func (CompileScriptReturns) MarshalEasyJSON Uses

func (v CompileScriptReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompileScriptReturns) MarshalJSON Uses

func (v CompileScriptReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CompileScriptReturns) UnmarshalEasyJSON Uses

func (v *CompileScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompileScriptReturns) UnmarshalJSON Uses

func (v *CompileScriptReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CustomPreview Uses

type CustomPreview struct {
    Header       string         `json:"header"`                 // The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
    BodyGetterID RemoteObjectID `json:"bodyGetterId,omitempty"` // 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.
}

CustomPreview [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-CustomPreview

func (CustomPreview) MarshalEasyJSON Uses

func (v CustomPreview) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomPreview) MarshalJSON Uses

func (v CustomPreview) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomPreview) UnmarshalEasyJSON Uses

func (v *CustomPreview) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomPreview) UnmarshalJSON Uses

func (v *CustomPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables reporting of execution contexts creation.

func Disable Uses

func Disable() *DisableParams

Disable disables reporting of execution contexts creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Runtime.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DiscardConsoleEntriesParams Uses

type DiscardConsoleEntriesParams struct{}

DiscardConsoleEntriesParams discards collected exceptions and console API calls.

func DiscardConsoleEntries Uses

func DiscardConsoleEntries() *DiscardConsoleEntriesParams

DiscardConsoleEntries discards collected exceptions and console API calls.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-discardConsoleEntries

func (*DiscardConsoleEntriesParams) Do Uses

func (p *DiscardConsoleEntriesParams) Do(ctx context.Context) (err error)

Do executes Runtime.discardConsoleEntries against the provided context.

func (DiscardConsoleEntriesParams) MarshalEasyJSON Uses

func (v DiscardConsoleEntriesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DiscardConsoleEntriesParams) MarshalJSON Uses

func (v DiscardConsoleEntriesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DiscardConsoleEntriesParams) UnmarshalEasyJSON Uses

func (v *DiscardConsoleEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DiscardConsoleEntriesParams) UnmarshalJSON Uses

func (v *DiscardConsoleEntriesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

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

func Enable Uses

func Enable() *EnableParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Runtime.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EntryPreview Uses

type EntryPreview struct {
    Key   *ObjectPreview `json:"key,omitempty"` // Preview of the key. Specified for map-like collection entries.
    Value *ObjectPreview `json:"value"`         // Preview of the value.
}

EntryPreview [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-EntryPreview

func (EntryPreview) MarshalEasyJSON Uses

func (v EntryPreview) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EntryPreview) MarshalJSON Uses

func (v EntryPreview) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EntryPreview) UnmarshalEasyJSON Uses

func (v *EntryPreview) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EntryPreview) UnmarshalJSON Uses

func (v *EntryPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EvaluateParams Uses

type EvaluateParams struct {
    Expression                  string             `json:"expression"`                            // Expression to evaluate.
    ObjectGroup                 string             `json:"objectGroup,omitempty"`                 // Symbolic group name that can be used to release multiple objects.
    IncludeCommandLineAPI       bool               `json:"includeCommandLineAPI,omitempty"`       // Determines whether Command Line API should be available during the evaluation.
    Silent                      bool               `json:"silent,omitempty"`                      // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
    ContextID                   ExecutionContextID `json:"contextId,omitempty"`                   // Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with uniqueContextId, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.
    ReturnByValue               bool               `json:"returnByValue,omitempty"`               // Whether the result is expected to be a JSON object that should be sent by value.
    GeneratePreview             bool               `json:"generatePreview,omitempty"`             // Whether preview should be generated for the result.
    UserGesture                 bool               `json:"userGesture,omitempty"`                 // Whether execution should be treated as initiated by user in the UI.
    AwaitPromise                bool               `json:"awaitPromise,omitempty"`                // Whether execution should await for resulting value and return once awaited promise is resolved.
    ThrowOnSideEffect           bool               `json:"throwOnSideEffect,omitempty"`           // Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below.
    Timeout                     TimeDelta          `json:"timeout,omitempty"`                     // Terminate execution after timing out (number of milliseconds).
    DisableBreaks               bool               `json:"disableBreaks,omitempty"`               // Disable breakpoints during execution.
    ReplMode                    bool               `json:"replMode,omitempty"`                    // Setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves.
    AllowUnsafeEvalBlockedByCSP bool               `json:"allowUnsafeEvalBlockedByCSP,omitempty"` // The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.
    UniqueContextID             string             `json:"uniqueContextId,omitempty"`             // An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with contextId.
}

EvaluateParams evaluates expression on global object.

func Evaluate Uses

func Evaluate(expression string) *EvaluateParams

Evaluate evaluates expression on global object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-evaluate

parameters:

expression - Expression to evaluate.

func (*EvaluateParams) Do Uses

func (p *EvaluateParams) Do(ctx context.Context) (result *RemoteObject, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.evaluate against the provided context.

returns:

result - Evaluation result.
exceptionDetails - Exception details.

func (EvaluateParams) MarshalEasyJSON Uses

func (v EvaluateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateParams) MarshalJSON Uses

func (v EvaluateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EvaluateParams) UnmarshalEasyJSON Uses

func (v *EvaluateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateParams) UnmarshalJSON Uses

func (v *EvaluateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (EvaluateParams) WithAllowUnsafeEvalBlockedByCSP Uses

func (p EvaluateParams) WithAllowUnsafeEvalBlockedByCSP(allowUnsafeEvalBlockedByCSP bool) *EvaluateParams

WithAllowUnsafeEvalBlockedByCSP the Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.

func (EvaluateParams) WithAwaitPromise Uses

func (p EvaluateParams) WithAwaitPromise(awaitPromise bool) *EvaluateParams

WithAwaitPromise whether execution should await for resulting value and return once awaited promise is resolved.

func (EvaluateParams) WithContextID Uses

func (p EvaluateParams) WithContextID(contextID ExecutionContextID) *EvaluateParams

WithContextID specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with uniqueContextId, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.

func (EvaluateParams) WithDisableBreaks Uses

func (p EvaluateParams) WithDisableBreaks(disableBreaks bool) *EvaluateParams

WithDisableBreaks disable breakpoints during execution.

func (EvaluateParams) WithGeneratePreview Uses

func (p EvaluateParams) WithGeneratePreview(generatePreview bool) *EvaluateParams

WithGeneratePreview whether preview should be generated for the result.

func (EvaluateParams) WithIncludeCommandLineAPI Uses

func (p EvaluateParams) WithIncludeCommandLineAPI(includeCommandLineAPI bool) *EvaluateParams

WithIncludeCommandLineAPI determines whether Command Line API should be available during the evaluation.

func (EvaluateParams) WithObjectGroup Uses

func (p EvaluateParams) WithObjectGroup(objectGroup string) *EvaluateParams

WithObjectGroup symbolic group name that can be used to release multiple objects.

func (EvaluateParams) WithReplMode Uses

func (p EvaluateParams) WithReplMode(replMode bool) *EvaluateParams

WithReplMode setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves.

func (EvaluateParams) WithReturnByValue Uses

func (p EvaluateParams) WithReturnByValue(returnByValue bool) *EvaluateParams

WithReturnByValue whether the result is expected to be a JSON object that should be sent by value.

func (EvaluateParams) WithSilent Uses

func (p EvaluateParams) WithSilent(silent bool) *EvaluateParams

WithSilent in silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

func (EvaluateParams) WithThrowOnSideEffect Uses

func (p EvaluateParams) WithThrowOnSideEffect(throwOnSideEffect bool) *EvaluateParams

WithThrowOnSideEffect whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below.

func (EvaluateParams) WithTimeout Uses

func (p EvaluateParams) WithTimeout(timeout TimeDelta) *EvaluateParams

WithTimeout terminate execution after timing out (number of milliseconds).

func (EvaluateParams) WithUniqueContextID Uses

func (p EvaluateParams) WithUniqueContextID(uniqueContextID string) *EvaluateParams

WithUniqueContextID an alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with contextId.

func (EvaluateParams) WithUserGesture Uses

func (p EvaluateParams) WithUserGesture(userGesture bool) *EvaluateParams

WithUserGesture whether execution should be treated as initiated by user in the UI.

type EvaluateReturns Uses

type EvaluateReturns struct {
    Result           *RemoteObject     `json:"result,omitempty"`           // Evaluation result.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

EvaluateReturns return values.

func (EvaluateReturns) MarshalEasyJSON Uses

func (v EvaluateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateReturns) MarshalJSON Uses

func (v EvaluateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EvaluateReturns) UnmarshalEasyJSON Uses

func (v *EvaluateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateReturns) UnmarshalJSON Uses

func (v *EvaluateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventBindingCalled Uses

type EventBindingCalled struct {
    Name               string             `json:"name"`
    Payload            string             `json:"payload"`
    ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made.
}

EventBindingCalled notification is issued every time when binding is called.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-bindingCalled

func (EventBindingCalled) MarshalEasyJSON Uses

func (v EventBindingCalled) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventBindingCalled) MarshalJSON Uses

func (v EventBindingCalled) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventBindingCalled) UnmarshalEasyJSON Uses

func (v *EventBindingCalled) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventBindingCalled) UnmarshalJSON Uses

func (v *EventBindingCalled) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventConsoleAPICalled Uses

type EventConsoleAPICalled struct {
    Type               APIType            `json:"type"`                 // Type of the call.
    Args               []*RemoteObject    `json:"args"`                 // Call arguments.
    ExecutionContextID ExecutionContextID `json:"executionContextId"`   // Identifier of the context where the call was made.
    Timestamp          *Timestamp         `json:"timestamp"`            // Call timestamp.
    StackTrace         *StackTrace        `json:"stackTrace,omitempty"` // Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
    Context            string             `json:"context,omitempty"`    // Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
}

EventConsoleAPICalled issued when console API was called.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-consoleAPICalled

func (EventConsoleAPICalled) MarshalEasyJSON Uses

func (v EventConsoleAPICalled) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventConsoleAPICalled) MarshalJSON Uses

func (v EventConsoleAPICalled) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventConsoleAPICalled) UnmarshalEasyJSON Uses

func (v *EventConsoleAPICalled) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventConsoleAPICalled) UnmarshalJSON Uses

func (v *EventConsoleAPICalled) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventExceptionRevoked Uses

type EventExceptionRevoked struct {
    Reason      string `json:"reason"`      // Reason describing why exception was revoked.
    ExceptionID int64  `json:"exceptionId"` // The id of revoked exception, as reported in exceptionThrown.
}

EventExceptionRevoked issued when unhandled exception was revoked.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionRevoked

func (EventExceptionRevoked) MarshalEasyJSON Uses

func (v EventExceptionRevoked) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventExceptionRevoked) MarshalJSON Uses

func (v EventExceptionRevoked) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventExceptionRevoked) UnmarshalEasyJSON Uses

func (v *EventExceptionRevoked) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventExceptionRevoked) UnmarshalJSON Uses

func (v *EventExceptionRevoked) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventExceptionThrown Uses

type EventExceptionThrown struct {
    Timestamp        *Timestamp        `json:"timestamp"` // Timestamp of the exception.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails"`
}

EventExceptionThrown issued when exception was thrown and unhandled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionThrown

func (EventExceptionThrown) MarshalEasyJSON Uses

func (v EventExceptionThrown) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventExceptionThrown) MarshalJSON Uses

func (v EventExceptionThrown) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventExceptionThrown) UnmarshalEasyJSON Uses

func (v *EventExceptionThrown) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventExceptionThrown) UnmarshalJSON Uses

func (v *EventExceptionThrown) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventExecutionContextCreated Uses

type EventExecutionContextCreated struct {
    Context *ExecutionContextDescription `json:"context"` // A newly created execution context.
}

EventExecutionContextCreated issued when new execution context is created.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextCreated

func (EventExecutionContextCreated) MarshalEasyJSON Uses

func (v EventExecutionContextCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventExecutionContextCreated) MarshalJSON Uses

func (v EventExecutionContextCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventExecutionContextCreated) UnmarshalEasyJSON Uses

func (v *EventExecutionContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventExecutionContextCreated) UnmarshalJSON Uses

func (v *EventExecutionContextCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventExecutionContextDestroyed Uses

type EventExecutionContextDestroyed struct {
    ExecutionContextID ExecutionContextID `json:"executionContextId"` // Id of the destroyed context
}

EventExecutionContextDestroyed issued when execution context is destroyed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextDestroyed

func (EventExecutionContextDestroyed) MarshalEasyJSON Uses

func (v EventExecutionContextDestroyed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventExecutionContextDestroyed) MarshalJSON Uses

func (v EventExecutionContextDestroyed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventExecutionContextDestroyed) UnmarshalEasyJSON Uses

func (v *EventExecutionContextDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventExecutionContextDestroyed) UnmarshalJSON Uses

func (v *EventExecutionContextDestroyed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventExecutionContextsCleared Uses

type EventExecutionContextsCleared struct{}

EventExecutionContextsCleared issued when all executionContexts were cleared in browser.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextsCleared

func (EventExecutionContextsCleared) MarshalEasyJSON Uses

func (v EventExecutionContextsCleared) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventExecutionContextsCleared) MarshalJSON Uses

func (v EventExecutionContextsCleared) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventExecutionContextsCleared) UnmarshalEasyJSON Uses

func (v *EventExecutionContextsCleared) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventExecutionContextsCleared) UnmarshalJSON Uses

func (v *EventExecutionContextsCleared) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInspectRequested Uses

type EventInspectRequested struct {
    Object *RemoteObject       `json:"object"`
    Hints  easyjson.RawMessage `json:"hints"`
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-inspectRequested

func (EventInspectRequested) MarshalEasyJSON Uses

func (v EventInspectRequested) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInspectRequested) MarshalJSON Uses

func (v EventInspectRequested) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInspectRequested) UnmarshalEasyJSON Uses

func (v *EventInspectRequested) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInspectRequested) UnmarshalJSON Uses

func (v *EventInspectRequested) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExceptionDetails Uses

type ExceptionDetails struct {
    ExceptionID        int64              `json:"exceptionId"`                  // Exception id.
    Text               string             `json:"text"`                         // Exception text, which should be used together with exception object when available.
    LineNumber         int64              `json:"lineNumber"`                   // Line number of the exception location (0-based).
    ColumnNumber       int64              `json:"columnNumber"`                 // Column number of the exception location (0-based).
    ScriptID           ScriptID           `json:"scriptId,omitempty"`           // Script ID of the exception location.
    URL                string             `json:"url,omitempty"`                // URL of the exception location, to be used when the script was not reported.
    StackTrace         *StackTrace        `json:"stackTrace,omitempty"`         // JavaScript stack trace if available.
    Exception          *RemoteObject      `json:"exception,omitempty"`          // Exception object if available.
    ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where exception happened.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ExceptionDetails

func (*ExceptionDetails) Error Uses

func (e *ExceptionDetails) Error() string

Error satisfies the error interface.

func (ExceptionDetails) MarshalEasyJSON Uses

func (v ExceptionDetails) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExceptionDetails) MarshalJSON Uses

func (v ExceptionDetails) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ExceptionDetails) UnmarshalEasyJSON Uses

func (v *ExceptionDetails) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExceptionDetails) UnmarshalJSON Uses

func (v *ExceptionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExecutionContextDescription Uses

type ExecutionContextDescription struct {
    ID       ExecutionContextID  `json:"id"`       // Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
    Origin   string              `json:"origin"`   // Execution context origin.
    Name     string              `json:"name"`     // Human readable name describing given context.
    UniqueID string              `json:"uniqueId"` // A system-unique execution context identifier. Unlike the id, this is unique across multiple processes, so can be reliably used to identify specific context while backend performs a cross-process navigation.
    AuxData  easyjson.RawMessage `json:"auxData,omitempty"`
}

ExecutionContextDescription description of an isolated world.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ExecutionContextDescription

func (ExecutionContextDescription) MarshalEasyJSON Uses

func (v ExecutionContextDescription) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExecutionContextDescription) MarshalJSON Uses

func (v ExecutionContextDescription) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ExecutionContextDescription) UnmarshalEasyJSON Uses

func (v *ExecutionContextDescription) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExecutionContextDescription) UnmarshalJSON Uses

func (v *ExecutionContextDescription) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExecutionContextID Uses

type ExecutionContextID int64

ExecutionContextID ID of an execution context.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ExecutionContextId

func (ExecutionContextID) Int64 Uses

func (t ExecutionContextID) Int64() int64

Int64 returns the ExecutionContextID as int64 value.

type GetHeapUsageParams Uses

type GetHeapUsageParams struct{}

GetHeapUsageParams returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

func GetHeapUsage Uses

func GetHeapUsage() *GetHeapUsageParams

GetHeapUsage returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-getHeapUsage

func (*GetHeapUsageParams) Do Uses

func (p *GetHeapUsageParams) Do(ctx context.Context) (usedSize float64, totalSize float64, err error)

Do executes Runtime.getHeapUsage against the provided context.

returns:

usedSize - Used heap size in bytes.
totalSize - Allocated heap size in bytes.

func (GetHeapUsageParams) MarshalEasyJSON Uses

func (v GetHeapUsageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHeapUsageParams) MarshalJSON Uses

func (v GetHeapUsageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHeapUsageParams) UnmarshalEasyJSON Uses

func (v *GetHeapUsageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHeapUsageParams) UnmarshalJSON Uses

func (v *GetHeapUsageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHeapUsageReturns Uses

type GetHeapUsageReturns struct {
    UsedSize  float64 `json:"usedSize,omitempty"`  // Used heap size in bytes.
    TotalSize float64 `json:"totalSize,omitempty"` // Allocated heap size in bytes.
}

GetHeapUsageReturns return values.

func (GetHeapUsageReturns) MarshalEasyJSON Uses

func (v GetHeapUsageReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHeapUsageReturns) MarshalJSON Uses

func (v GetHeapUsageReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHeapUsageReturns) UnmarshalEasyJSON Uses

func (v *GetHeapUsageReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHeapUsageReturns) UnmarshalJSON Uses

func (v *GetHeapUsageReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetIsolateIDParams Uses

type GetIsolateIDParams struct{}

GetIsolateIDParams returns the isolate id.

func GetIsolateID Uses

func GetIsolateID() *GetIsolateIDParams

GetIsolateID returns the isolate id.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-getIsolateId

func (*GetIsolateIDParams) Do Uses

func (p *GetIsolateIDParams) Do(ctx context.Context) (id string, err error)

Do executes Runtime.getIsolateId against the provided context.

returns:

id - The isolate id.

func (GetIsolateIDParams) MarshalEasyJSON Uses

func (v GetIsolateIDParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetIsolateIDParams) MarshalJSON Uses

func (v GetIsolateIDParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetIsolateIDParams) UnmarshalEasyJSON Uses

func (v *GetIsolateIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetIsolateIDParams) UnmarshalJSON Uses

func (v *GetIsolateIDParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetIsolateIDReturns Uses

type GetIsolateIDReturns struct {
    ID string `json:"id,omitempty"` // The isolate id.
}

GetIsolateIDReturns return values.

func (GetIsolateIDReturns) MarshalEasyJSON Uses

func (v GetIsolateIDReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetIsolateIDReturns) MarshalJSON Uses

func (v GetIsolateIDReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetIsolateIDReturns) UnmarshalEasyJSON Uses

func (v *GetIsolateIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetIsolateIDReturns) UnmarshalJSON Uses

func (v *GetIsolateIDReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPropertiesParams Uses

type GetPropertiesParams struct {
    ObjectID               RemoteObjectID `json:"objectId"`                         // Identifier of the object to return properties for.
    OwnProperties          bool           `json:"ownProperties,omitempty"`          // If true, returns properties belonging only to the element itself, not to its prototype chain.
    AccessorPropertiesOnly bool           `json:"accessorPropertiesOnly,omitempty"` // If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
    GeneratePreview        bool           `json:"generatePreview,omitempty"`        // Whether preview should be generated for the results.
}

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

func GetProperties Uses

func GetProperties(objectID RemoteObjectID) *GetPropertiesParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-getProperties

parameters:

objectID - Identifier of the object to return properties for.

func (*GetPropertiesParams) Do Uses

func (p *GetPropertiesParams) Do(ctx context.Context) (result []*PropertyDescriptor, internalProperties []*InternalPropertyDescriptor, privateProperties []*PrivatePropertyDescriptor, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.getProperties against the provided context.

returns:

result - Object properties.
internalProperties - Internal object properties (only of the element itself).
privateProperties - Object private properties.
exceptionDetails - Exception details.

func (GetPropertiesParams) MarshalEasyJSON Uses

func (v GetPropertiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPropertiesParams) MarshalJSON Uses

func (v GetPropertiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPropertiesParams) UnmarshalEasyJSON Uses

func (v *GetPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPropertiesParams) UnmarshalJSON Uses

func (v *GetPropertiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetPropertiesParams) WithAccessorPropertiesOnly Uses

func (p GetPropertiesParams) WithAccessorPropertiesOnly(accessorPropertiesOnly bool) *GetPropertiesParams

WithAccessorPropertiesOnly if true, returns accessor properties (with getter/setter) only; internal properties are not returned either.

func (GetPropertiesParams) WithGeneratePreview Uses

func (p GetPropertiesParams) WithGeneratePreview(generatePreview bool) *GetPropertiesParams

WithGeneratePreview whether preview should be generated for the results.

func (GetPropertiesParams) WithOwnProperties Uses

func (p GetPropertiesParams) WithOwnProperties(ownProperties bool) *GetPropertiesParams

WithOwnProperties if true, returns properties belonging only to the element itself, not to its prototype chain.

type GetPropertiesReturns Uses

type GetPropertiesReturns struct {
    Result             []*PropertyDescriptor         `json:"result,omitempty"`             // Object properties.
    InternalProperties []*InternalPropertyDescriptor `json:"internalProperties,omitempty"` // Internal object properties (only of the element itself).
    PrivateProperties  []*PrivatePropertyDescriptor  `json:"privateProperties,omitempty"`  // Object private properties.
    ExceptionDetails   *ExceptionDetails             `json:"exceptionDetails,omitempty"`   // Exception details.
}

GetPropertiesReturns return values.

func (GetPropertiesReturns) MarshalEasyJSON Uses

func (v GetPropertiesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPropertiesReturns) MarshalJSON Uses

func (v GetPropertiesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPropertiesReturns) UnmarshalEasyJSON Uses

func (v *GetPropertiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPropertiesReturns) UnmarshalJSON Uses

func (v *GetPropertiesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GlobalLexicalScopeNamesParams Uses

type GlobalLexicalScopeNamesParams struct {
    ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Specifies in which execution context to lookup global scope variables.
}

GlobalLexicalScopeNamesParams returns all let, const and class variables from global scope.

func GlobalLexicalScopeNames Uses

func GlobalLexicalScopeNames() *GlobalLexicalScopeNamesParams

GlobalLexicalScopeNames returns all let, const and class variables from global scope.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-globalLexicalScopeNames

parameters:

func (*GlobalLexicalScopeNamesParams) Do Uses

func (p *GlobalLexicalScopeNamesParams) Do(ctx context.Context) (names []string, err error)

Do executes Runtime.globalLexicalScopeNames against the provided context.

returns:

names

func (GlobalLexicalScopeNamesParams) MarshalEasyJSON Uses

func (v GlobalLexicalScopeNamesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GlobalLexicalScopeNamesParams) MarshalJSON Uses

func (v GlobalLexicalScopeNamesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GlobalLexicalScopeNamesParams) UnmarshalEasyJSON Uses

func (v *GlobalLexicalScopeNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GlobalLexicalScopeNamesParams) UnmarshalJSON Uses

func (v *GlobalLexicalScopeNamesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GlobalLexicalScopeNamesParams) WithExecutionContextID Uses

func (p GlobalLexicalScopeNamesParams) WithExecutionContextID(executionContextID ExecutionContextID) *GlobalLexicalScopeNamesParams

WithExecutionContextID specifies in which execution context to lookup global scope variables.

type GlobalLexicalScopeNamesReturns Uses

type GlobalLexicalScopeNamesReturns struct {
    Names []string `json:"names,omitempty"`
}

GlobalLexicalScopeNamesReturns return values.

func (GlobalLexicalScopeNamesReturns) MarshalEasyJSON Uses

func (v GlobalLexicalScopeNamesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GlobalLexicalScopeNamesReturns) MarshalJSON Uses

func (v GlobalLexicalScopeNamesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GlobalLexicalScopeNamesReturns) UnmarshalEasyJSON Uses

func (v *GlobalLexicalScopeNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GlobalLexicalScopeNamesReturns) UnmarshalJSON Uses

func (v *GlobalLexicalScopeNamesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InternalPropertyDescriptor Uses

type InternalPropertyDescriptor struct {
    Name  string        `json:"name"`            // Conventional property name.
    Value *RemoteObject `json:"value,omitempty"` // The value associated with the property.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-InternalPropertyDescriptor

func (InternalPropertyDescriptor) MarshalEasyJSON Uses

func (v InternalPropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InternalPropertyDescriptor) MarshalJSON Uses

func (v InternalPropertyDescriptor) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InternalPropertyDescriptor) UnmarshalEasyJSON Uses

func (v *InternalPropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InternalPropertyDescriptor) UnmarshalJSON Uses

func (v *InternalPropertyDescriptor) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ObjectPreview Uses

type ObjectPreview struct {
    Type        Type               `json:"type"`                  // Object type.
    Subtype     Subtype            `json:"subtype,omitempty"`     // Object subtype hint. Specified for object type values only.
    Description string             `json:"description,omitempty"` // String representation of the object.
    Overflow    bool               `json:"overflow"`              // True iff some of the properties or entries of the original object did not fit.
    Properties  []*PropertyPreview `json:"properties"`            // List of the properties.
    Entries     []*EntryPreview    `json:"entries,omitempty"`     // List of the entries. Specified for map and set subtype values only.
}

ObjectPreview object containing abbreviated remote object value.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ObjectPreview

func (ObjectPreview) MarshalEasyJSON Uses

func (v ObjectPreview) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ObjectPreview) MarshalJSON Uses

func (v ObjectPreview) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ObjectPreview) UnmarshalEasyJSON Uses

func (v *ObjectPreview) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ObjectPreview) UnmarshalJSON Uses

func (v *ObjectPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PrivatePropertyDescriptor Uses

type PrivatePropertyDescriptor struct {
    Name  string        `json:"name"`            // Private property name.
    Value *RemoteObject `json:"value,omitempty"` // The value associated with the private property.
    Get   *RemoteObject `json:"get,omitempty"`   // A function which serves as a getter for the private property, or undefined if there is no getter (accessor descriptors only).
    Set   *RemoteObject `json:"set,omitempty"`   // A function which serves as a setter for the private property, or undefined if there is no setter (accessor descriptors only).
}

PrivatePropertyDescriptor object private field descriptor.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-PrivatePropertyDescriptor

func (PrivatePropertyDescriptor) MarshalEasyJSON Uses

func (v PrivatePropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrivatePropertyDescriptor) MarshalJSON Uses

func (v PrivatePropertyDescriptor) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PrivatePropertyDescriptor) UnmarshalEasyJSON Uses

func (v *PrivatePropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrivatePropertyDescriptor) UnmarshalJSON Uses

func (v *PrivatePropertyDescriptor) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PropertyDescriptor Uses

type PropertyDescriptor struct {
    Name         string        `json:"name"`                // Property name or symbol description.
    Value        *RemoteObject `json:"value,omitempty"`     // The value associated with the property.
    Writable     bool          `json:"writable,omitempty"`  // True if the value associated with the property may be changed (data descriptors only).
    Get          *RemoteObject `json:"get,omitempty"`       // A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
    Set          *RemoteObject `json:"set,omitempty"`       // A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
    Configurable bool          `json:"configurable"`        // True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
    Enumerable   bool          `json:"enumerable"`          // True if this property shows up during enumeration of the properties on the corresponding object.
    WasThrown    bool          `json:"wasThrown,omitempty"` // True if the result was thrown during the evaluation.
    IsOwn        bool          `json:"isOwn,omitempty"`     // True if the property is owned for the object.
    Symbol       *RemoteObject `json:"symbol,omitempty"`    // Property symbol object, if the property is of the symbol type.
}

PropertyDescriptor object property descriptor.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-PropertyDescriptor

func (PropertyDescriptor) MarshalEasyJSON Uses

func (v PropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PropertyDescriptor) MarshalJSON Uses

func (v PropertyDescriptor) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PropertyDescriptor) UnmarshalEasyJSON Uses

func (v *PropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PropertyDescriptor) UnmarshalJSON Uses

func (v *PropertyDescriptor) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PropertyPreview Uses

type PropertyPreview struct {
    Name         string         `json:"name"`                   // Property name.
    Type         Type           `json:"type"`                   // Object type. Accessor means that the property itself is an accessor property.
    Value        string         `json:"value,omitempty"`        // User-friendly property value string.
    ValuePreview *ObjectPreview `json:"valuePreview,omitempty"` // Nested value preview.
    Subtype      Subtype        `json:"subtype,omitempty"`      // Object subtype hint. Specified for object type values only.
}

PropertyPreview [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-PropertyPreview

func (PropertyPreview) MarshalEasyJSON Uses

func (v PropertyPreview) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PropertyPreview) MarshalJSON Uses

func (v PropertyPreview) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PropertyPreview) UnmarshalEasyJSON Uses

func (v *PropertyPreview) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PropertyPreview) UnmarshalJSON Uses

func (v *PropertyPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QueryObjectsParams Uses

type QueryObjectsParams struct {
    PrototypeObjectID RemoteObjectID `json:"prototypeObjectId"`     // Identifier of the prototype to return objects for.
    ObjectGroup       string         `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release the results.
}

QueryObjectsParams [no description].

func QueryObjects Uses

func QueryObjects(prototypeObjectID RemoteObjectID) *QueryObjectsParams

QueryObjects [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-queryObjects

parameters:

prototypeObjectID - Identifier of the prototype to return objects for.

func (*QueryObjectsParams) Do Uses

func (p *QueryObjectsParams) Do(ctx context.Context) (objects *RemoteObject, err error)

Do executes Runtime.queryObjects against the provided context.

returns:

objects - Array with objects.

func (QueryObjectsParams) MarshalEasyJSON Uses

func (v QueryObjectsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QueryObjectsParams) MarshalJSON Uses

func (v QueryObjectsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QueryObjectsParams) UnmarshalEasyJSON Uses

func (v *QueryObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QueryObjectsParams) UnmarshalJSON Uses

func (v *QueryObjectsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (QueryObjectsParams) WithObjectGroup Uses

func (p QueryObjectsParams) WithObjectGroup(objectGroup string) *QueryObjectsParams

WithObjectGroup symbolic group name that can be used to release the results.

type QueryObjectsReturns Uses

type QueryObjectsReturns struct {
    Objects *RemoteObject `json:"objects,omitempty"` // Array with objects.
}

QueryObjectsReturns return values.

func (QueryObjectsReturns) MarshalEasyJSON Uses

func (v QueryObjectsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QueryObjectsReturns) MarshalJSON Uses

func (v QueryObjectsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QueryObjectsReturns) UnmarshalEasyJSON Uses

func (v *QueryObjectsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QueryObjectsReturns) UnmarshalJSON Uses

func (v *QueryObjectsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseObjectGroupParams Uses

type ReleaseObjectGroupParams struct {
    ObjectGroup string `json:"objectGroup"` // Symbolic object group name.
}

ReleaseObjectGroupParams releases all remote objects that belong to a given group.

func ReleaseObjectGroup Uses

func ReleaseObjectGroup(objectGroup string) *ReleaseObjectGroupParams

ReleaseObjectGroup releases all remote objects that belong to a given group.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-releaseObjectGroup

parameters:

objectGroup - Symbolic object group name.

func (*ReleaseObjectGroupParams) Do Uses

func (p *ReleaseObjectGroupParams) Do(ctx context.Context) (err error)

Do executes Runtime.releaseObjectGroup against the provided context.

func (ReleaseObjectGroupParams) MarshalEasyJSON Uses

func (v ReleaseObjectGroupParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseObjectGroupParams) MarshalJSON Uses

func (v ReleaseObjectGroupParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReleaseObjectGroupParams) UnmarshalEasyJSON Uses

func (v *ReleaseObjectGroupParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseObjectGroupParams) UnmarshalJSON Uses

func (v *ReleaseObjectGroupParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseObjectParams Uses

type ReleaseObjectParams struct {
    ObjectID RemoteObjectID `json:"objectId"` // Identifier of the object to release.
}

ReleaseObjectParams releases remote object with given id.

func ReleaseObject Uses

func ReleaseObject(objectID RemoteObjectID) *ReleaseObjectParams

ReleaseObject releases remote object with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-releaseObject

parameters:

objectID - Identifier of the object to release.

func (*ReleaseObjectParams) Do Uses

func (p *ReleaseObjectParams) Do(ctx context.Context) (err error)

Do executes Runtime.releaseObject against the provided context.

func (ReleaseObjectParams) MarshalEasyJSON Uses

func (v ReleaseObjectParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseObjectParams) MarshalJSON Uses

func (v ReleaseObjectParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReleaseObjectParams) UnmarshalEasyJSON Uses

func (v *ReleaseObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseObjectParams) UnmarshalJSON Uses

func (v *ReleaseObjectParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoteObject Uses

type RemoteObject struct {
    Type                Type                `json:"type"`                          // Object type.
    Subtype             Subtype             `json:"subtype,omitempty"`             // Object subtype hint. Specified for object type values only. NOTE: If you change anything here, make sure to also update subtype in ObjectPreview and PropertyPreview below.
    ClassName           string              `json:"className,omitempty"`           // Object class (constructor) name. Specified for object type values only.
    Value               easyjson.RawMessage `json:"value,omitempty"`               // Remote object value in case of primitive values or JSON values (if it was requested).
    UnserializableValue UnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified does not have value, but gets this property.
    Description         string              `json:"description,omitempty"`         // String representation of the object.
    ObjectID            RemoteObjectID      `json:"objectId,omitempty"`            // Unique object identifier (for non-primitive values).
    Preview             *ObjectPreview      `json:"preview,omitempty"`             // Preview containing abbreviated property values. Specified for object type values only.
    CustomPreview       *CustomPreview      `json:"customPreview,omitempty"`
}

RemoteObject mirror object referencing original JavaScript object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObject

func (RemoteObject) MarshalEasyJSON Uses

func (v RemoteObject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoteObject) MarshalJSON Uses

func (v RemoteObject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoteObject) UnmarshalEasyJSON Uses

func (v *RemoteObject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoteObject) UnmarshalJSON Uses

func (v *RemoteObject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoteObjectID Uses

type RemoteObjectID string

RemoteObjectID unique object identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObjectId

func (RemoteObjectID) String Uses

func (t RemoteObjectID) String() string

String returns the RemoteObjectID as string value.

type RemoveBindingParams Uses

type RemoveBindingParams struct {
    Name string `json:"name"`
}

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

func RemoveBinding Uses

func RemoveBinding(name string) *RemoveBindingParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-removeBinding

parameters:

name

func (*RemoveBindingParams) Do Uses

func (p *RemoveBindingParams) Do(ctx context.Context) (err error)

Do executes Runtime.removeBinding against the provided context.

func (RemoveBindingParams) MarshalEasyJSON Uses

func (v RemoveBindingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveBindingParams) MarshalJSON Uses

func (v RemoveBindingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveBindingParams) UnmarshalEasyJSON Uses

func (v *RemoveBindingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveBindingParams) UnmarshalJSON Uses

func (v *RemoveBindingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RunIfWaitingForDebuggerParams Uses

type RunIfWaitingForDebuggerParams struct{}

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

func RunIfWaitingForDebugger Uses

func RunIfWaitingForDebugger() *RunIfWaitingForDebuggerParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-runIfWaitingForDebugger

func (*RunIfWaitingForDebuggerParams) Do Uses

func (p *RunIfWaitingForDebuggerParams) Do(ctx context.Context) (err error)

Do executes Runtime.runIfWaitingForDebugger against the provided context.

func (RunIfWaitingForDebuggerParams) MarshalEasyJSON Uses

func (v RunIfWaitingForDebuggerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RunIfWaitingForDebuggerParams) MarshalJSON Uses

func (v RunIfWaitingForDebuggerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RunIfWaitingForDebuggerParams) UnmarshalEasyJSON Uses

func (v *RunIfWaitingForDebuggerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RunIfWaitingForDebuggerParams) UnmarshalJSON Uses

func (v *RunIfWaitingForDebuggerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RunScriptParams Uses

type RunScriptParams struct {
    ScriptID              ScriptID           `json:"scriptId"`                        // Id of the script to run.
    ExecutionContextID    ExecutionContextID `json:"executionContextId,omitempty"`    // Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
    ObjectGroup           string             `json:"objectGroup,omitempty"`           // Symbolic group name that can be used to release multiple objects.
    Silent                bool               `json:"silent,omitempty"`                // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
    IncludeCommandLineAPI bool               `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation.
    ReturnByValue         bool               `json:"returnByValue,omitempty"`         // Whether the result is expected to be a JSON object which should be sent by value.
    GeneratePreview       bool               `json:"generatePreview,omitempty"`       // Whether preview should be generated for the result.
    AwaitPromise          bool               `json:"awaitPromise,omitempty"`          // Whether execution should await for resulting value and return once awaited promise is resolved.
}

RunScriptParams runs script with given id in a given context.

func RunScript Uses

func RunScript(scriptID ScriptID) *RunScriptParams

RunScript runs script with given id in a given context.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-runScript

parameters:

scriptID - Id of the script to run.

func (*RunScriptParams) Do Uses

func (p *RunScriptParams) Do(ctx context.Context) (result *RemoteObject, exceptionDetails *ExceptionDetails, err error)

Do executes Runtime.runScript against the provided context.

returns:

result - Run result.
exceptionDetails - Exception details.

func (RunScriptParams) MarshalEasyJSON Uses

func (v RunScriptParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RunScriptParams) MarshalJSON Uses

func (v RunScriptParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RunScriptParams) UnmarshalEasyJSON Uses

func (v *RunScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RunScriptParams) UnmarshalJSON Uses

func (v *RunScriptParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (RunScriptParams) WithAwaitPromise Uses

func (p RunScriptParams) WithAwaitPromise(awaitPromise bool) *RunScriptParams

WithAwaitPromise whether execution should await for resulting value and return once awaited promise is resolved.

func (RunScriptParams) WithExecutionContextID Uses

func (p RunScriptParams) WithExecutionContextID(executionContextID ExecutionContextID) *RunScriptParams

WithExecutionContextID specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.

func (RunScriptParams) WithGeneratePreview Uses

func (p RunScriptParams) WithGeneratePreview(generatePreview bool) *RunScriptParams

WithGeneratePreview whether preview should be generated for the result.

func (RunScriptParams) WithIncludeCommandLineAPI Uses

func (p RunScriptParams) WithIncludeCommandLineAPI(includeCommandLineAPI bool) *RunScriptParams

WithIncludeCommandLineAPI determines whether Command Line API should be available during the evaluation.

func (RunScriptParams) WithObjectGroup Uses

func (p RunScriptParams) WithObjectGroup(objectGroup string) *RunScriptParams

WithObjectGroup symbolic group name that can be used to release multiple objects.

func (RunScriptParams) WithReturnByValue Uses

func (p RunScriptParams) WithReturnByValue(returnByValue bool) *RunScriptParams

WithReturnByValue whether the result is expected to be a JSON object which should be sent by value.

func (RunScriptParams) WithSilent Uses

func (p RunScriptParams) WithSilent(silent bool) *RunScriptParams

WithSilent in silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

type RunScriptReturns Uses

type RunScriptReturns struct {
    Result           *RemoteObject     `json:"result,omitempty"`           // Run result.
    ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

RunScriptReturns return values.

func (RunScriptReturns) MarshalEasyJSON Uses

func (v RunScriptReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RunScriptReturns) MarshalJSON Uses

func (v RunScriptReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RunScriptReturns) UnmarshalEasyJSON Uses

func (v *RunScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RunScriptReturns) UnmarshalJSON Uses

func (v *RunScriptReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScriptID Uses

type ScriptID string

ScriptID unique script identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ScriptId

func (ScriptID) String Uses

func (t ScriptID) String() string

String returns the ScriptID as string value.

type SetCustomObjectFormatterEnabledParams Uses

type SetCustomObjectFormatterEnabledParams struct {
    Enabled bool `json:"enabled"`
}

SetCustomObjectFormatterEnabledParams [no description].

func SetCustomObjectFormatterEnabled Uses

func SetCustomObjectFormatterEnabled(enabled bool) *SetCustomObjectFormatterEnabledParams

SetCustomObjectFormatterEnabled [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-setCustomObjectFormatterEnabled

parameters:

enabled

func (*SetCustomObjectFormatterEnabledParams) Do Uses

func (p *SetCustomObjectFormatterEnabledParams) Do(ctx context.Context) (err error)

Do executes Runtime.setCustomObjectFormatterEnabled against the provided context.

func (SetCustomObjectFormatterEnabledParams) MarshalEasyJSON Uses

func (v SetCustomObjectFormatterEnabledParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCustomObjectFormatterEnabledParams) MarshalJSON Uses

func (v SetCustomObjectFormatterEnabledParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON Uses

func (v *SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCustomObjectFormatterEnabledParams) UnmarshalJSON Uses

func (v *SetCustomObjectFormatterEnabledParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetMaxCallStackSizeToCaptureParams Uses

type SetMaxCallStackSizeToCaptureParams struct {
    Size int64 `json:"size"`
}

SetMaxCallStackSizeToCaptureParams [no description].

func SetMaxCallStackSizeToCapture Uses

func SetMaxCallStackSizeToCapture(size int64) *SetMaxCallStackSizeToCaptureParams

SetMaxCallStackSizeToCapture [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-setMaxCallStackSizeToCapture

parameters:

size

func (*SetMaxCallStackSizeToCaptureParams) Do Uses

func (p *SetMaxCallStackSizeToCaptureParams) Do(ctx context.Context) (err error)

Do executes Runtime.setMaxCallStackSizeToCapture against the provided context.

func (SetMaxCallStackSizeToCaptureParams) MarshalEasyJSON Uses

func (v SetMaxCallStackSizeToCaptureParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetMaxCallStackSizeToCaptureParams) MarshalJSON Uses

func (v SetMaxCallStackSizeToCaptureParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetMaxCallStackSizeToCaptureParams) UnmarshalEasyJSON Uses

func (v *SetMaxCallStackSizeToCaptureParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetMaxCallStackSizeToCaptureParams) UnmarshalJSON Uses

func (v *SetMaxCallStackSizeToCaptureParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StackTrace Uses

type StackTrace struct {
    Description string        `json:"description,omitempty"` // String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
    CallFrames  []*CallFrame  `json:"callFrames"`            // JavaScript function name.
    Parent      *StackTrace   `json:"parent,omitempty"`      // Asynchronous JavaScript stack trace that preceded this stack, if available.
    ParentID    *StackTraceID `json:"parentId,omitempty"`    // Asynchronous JavaScript stack trace that preceded this stack, if available.
}

StackTrace call frames for assertions or error messages.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-StackTrace

func (StackTrace) MarshalEasyJSON Uses

func (v StackTrace) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StackTrace) MarshalJSON Uses

func (v StackTrace) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StackTrace) UnmarshalEasyJSON Uses

func (v *StackTrace) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StackTrace) UnmarshalJSON Uses

func (v *StackTrace) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StackTraceID Uses

type StackTraceID struct {
    ID         string           `json:"id"`
    DebuggerID UniqueDebuggerID `json:"debuggerId,omitempty"`
}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-StackTraceId

func (StackTraceID) MarshalEasyJSON Uses

func (v StackTraceID) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StackTraceID) MarshalJSON Uses

func (v StackTraceID) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StackTraceID) UnmarshalEasyJSON Uses

func (v *StackTraceID) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StackTraceID) UnmarshalJSON Uses

func (v *StackTraceID) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Subtype Uses

type Subtype string

Subtype object subtype hint. Specified for object type values only. NOTE: If you change anything here, make sure to also update subtype in ObjectPreview and PropertyPreview below.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObject

const (
    SubtypeArray             Subtype = "array"
    SubtypeNull              Subtype = "null"
    SubtypeNode              Subtype = "node"
    SubtypeRegexp            Subtype = "regexp"
    SubtypeDate              Subtype = "date"
    SubtypeMap               Subtype = "map"
    SubtypeSet               Subtype = "set"
    SubtypeWeakmap           Subtype = "weakmap"
    SubtypeWeakset           Subtype = "weakset"
    SubtypeIterator          Subtype = "iterator"
    SubtypeGenerator         Subtype = "generator"
    SubtypeError             Subtype = "error"
    SubtypeProxy             Subtype = "proxy"
    SubtypePromise           Subtype = "promise"
    SubtypeTypedarray        Subtype = "typedarray"
    SubtypeArraybuffer       Subtype = "arraybuffer"
    SubtypeDataview          Subtype = "dataview"
    SubtypeWebassemblymemory Subtype = "webassemblymemory"
)

Subtype values.

func (Subtype) MarshalEasyJSON Uses

func (t Subtype) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Subtype) MarshalJSON Uses

func (t Subtype) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Subtype) String Uses

func (t Subtype) String() string

String returns the Subtype as string value.

func (*Subtype) UnmarshalEasyJSON Uses

func (t *Subtype) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Subtype) UnmarshalJSON Uses

func (t *Subtype) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type TerminateExecutionParams Uses

type TerminateExecutionParams struct{}

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

func TerminateExecution Uses

func TerminateExecution() *TerminateExecutionParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-terminateExecution

func (*TerminateExecutionParams) Do Uses

func (p *TerminateExecutionParams) Do(ctx context.Context) (err error)

Do executes Runtime.terminateExecution against the provided context.

func (TerminateExecutionParams) MarshalEasyJSON Uses

func (v TerminateExecutionParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TerminateExecutionParams) MarshalJSON Uses

func (v TerminateExecutionParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TerminateExecutionParams) UnmarshalEasyJSON Uses

func (v *TerminateExecutionParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TerminateExecutionParams) UnmarshalJSON Uses

func (v *TerminateExecutionParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TimeDelta Uses

type TimeDelta float64

TimeDelta number of milliseconds.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-TimeDelta

func (TimeDelta) Float64 Uses

func (t TimeDelta) Float64() float64

Float64 returns the TimeDelta as float64 value.

type Timestamp Uses

type Timestamp time.Time

Timestamp number of milliseconds since epoch.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-Timestamp

func (Timestamp) MarshalEasyJSON Uses

func (t Timestamp) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Timestamp) MarshalJSON Uses

func (t Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Timestamp) Time Uses

func (t Timestamp) Time() time.Time

Time returns the Timestamp as time.Time value.

func (*Timestamp) UnmarshalEasyJSON Uses

func (t *Timestamp) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Timestamp) UnmarshalJSON Uses

func (t *Timestamp) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type Type Uses

type Type string

Type object type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObject

const (
    TypeObject    Type = "object"
    TypeFunction  Type = "function"
    TypeUndefined Type = "undefined"
    TypeString    Type = "string"
    TypeNumber    Type = "number"
    TypeBoolean   Type = "boolean"
    TypeSymbol    Type = "symbol"
    TypeBigint    Type = "bigint"
    TypeAccessor  Type = "accessor"
)

Type values.

func (Type) MarshalEasyJSON Uses

func (t Type) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Type) MarshalJSON Uses

func (t Type) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Type) String Uses

func (t Type) String() string

String returns the Type as string value.

func (*Type) UnmarshalEasyJSON Uses

func (t *Type) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Type) UnmarshalJSON Uses

func (t *Type) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type UniqueDebuggerID Uses

type UniqueDebuggerID string

UniqueDebuggerID unique identifier of current debugger.

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-UniqueDebuggerId

func (UniqueDebuggerID) String Uses

func (t UniqueDebuggerID) String() string

String returns the UniqueDebuggerID as string value.

type UnserializableValue Uses

type UnserializableValue string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-UnserializableValue

func (UnserializableValue) String Uses

func (t UnserializableValue) String() string

String returns the UnserializableValue as string value.

Package runtime imports 11 packages (graph) and is imported by 53 packages. Updated 2021-01-20. Refresh now. Tools for package owners.