eval

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

View Source
const EmptyExecutionContextID = runtime.ExecutionContextID(-1)

Variables

This section is empty.

Functions

func Param added in v0.7.0

func Param(input core.Value) string

func ParamFloat added in v0.7.0

func ParamFloat(param float64) string

func ParamInt added in v0.7.0

func ParamInt(param int64) string

func ParamString

func ParamString(param string) string

func PrepareEval

func PrepareEval(exp string) string

func Unmarshal

func Unmarshal(obj *runtime.RemoteObject) (core.Value, error)

Types

type ExecutionContext added in v0.8.0

type ExecutionContext struct {
	// contains filtered or unexported fields
}

func NewExecutionContext added in v0.8.0

func NewExecutionContext(client *cdp.Client, frame page.Frame, contextID runtime.ExecutionContextID) *ExecutionContext

func NewExecutionContextFrom added in v0.12.0

func NewExecutionContextFrom(ctx context.Context, client *cdp.Client, frame page.Frame) (*ExecutionContext, error)

func (*ExecutionContext) CallMethod added in v0.8.0

func (ec *ExecutionContext) CallMethod(
	ctx context.Context,
	objectID runtime.RemoteObjectID,
	methodName string,
	args []runtime.CallArgument,
) (*runtime.RemoteObject, error)

func (*ExecutionContext) DispatchEvent added in v0.8.0

func (ec *ExecutionContext) DispatchEvent(
	ctx context.Context,
	objectID runtime.RemoteObjectID,
	eventName string,
) (values.Boolean, error)

func (*ExecutionContext) Eval added in v0.8.0

func (ec *ExecutionContext) Eval(ctx context.Context, exp string) error

func (*ExecutionContext) EvalAsync added in v0.8.0

func (ec *ExecutionContext) EvalAsync(ctx context.Context, exp string) (core.Value, error)

func (*ExecutionContext) EvalWithArguments added in v0.8.0

func (ec *ExecutionContext) EvalWithArguments(ctx context.Context, exp string, args ...runtime.CallArgument) error

func (*ExecutionContext) EvalWithArgumentsAndReturnReference added in v0.8.0

func (ec *ExecutionContext) EvalWithArgumentsAndReturnReference(ctx context.Context, exp string, args ...runtime.CallArgument) (runtime.RemoteObject, error)

func (*ExecutionContext) EvalWithArgumentsAndReturnValue added in v0.8.0

func (ec *ExecutionContext) EvalWithArgumentsAndReturnValue(ctx context.Context, exp string, args ...runtime.CallArgument) (core.Value, error)

func (*ExecutionContext) EvalWithReturnReference added in v0.8.0

func (ec *ExecutionContext) EvalWithReturnReference(ctx context.Context, exp string) (runtime.RemoteObject, error)

func (*ExecutionContext) EvalWithReturnValue added in v0.8.0

func (ec *ExecutionContext) EvalWithReturnValue(ctx context.Context, exp string) (core.Value, error)

func (*ExecutionContext) ID added in v0.8.0

func (*ExecutionContext) ReadProperty added in v0.8.0

func (ec *ExecutionContext) ReadProperty(
	ctx context.Context,
	objectID runtime.RemoteObjectID,
	propName string,
) (core.Value, error)

func (*ExecutionContext) ReadPropertyByNodeID added in v0.8.0

func (ec *ExecutionContext) ReadPropertyByNodeID(
	ctx context.Context,
	nodeID dom.NodeID,
	propName string,
) (core.Value, error)

func (*ExecutionContext) ResolveNode added in v0.8.0

func (ec *ExecutionContext) ResolveNode(ctx context.Context, nodeID dom.NodeID) (runtime.RemoteObject, error)

func (*ExecutionContext) ResolveRemoteObject added in v0.8.0

func (ec *ExecutionContext) ResolveRemoteObject(ctx context.Context, exp string) (runtime.RemoteObject, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL