Documentation
¶
Index ¶
- Constants
- func Param(input core.Value) string
- func ParamFloat(param float64) string
- func ParamInt(param int64) string
- func ParamString(param string) string
- func PrepareEval(exp string) string
- func Unmarshal(obj *runtime.RemoteObject) (core.Value, error)
- type ExecutionContext
- func (ec *ExecutionContext) CallMethod(ctx context.Context, objectID runtime.RemoteObjectID, methodName string, ...) (*runtime.RemoteObject, error)
- func (ec *ExecutionContext) DispatchEvent(ctx context.Context, objectID runtime.RemoteObjectID, eventName string) (values.Boolean, error)
- func (ec *ExecutionContext) Eval(ctx context.Context, exp string) error
- func (ec *ExecutionContext) EvalAsync(ctx context.Context, exp string) (core.Value, error)
- func (ec *ExecutionContext) EvalWithArguments(ctx context.Context, exp string, args ...runtime.CallArgument) error
- func (ec *ExecutionContext) EvalWithArgumentsAndReturnReference(ctx context.Context, exp string, args ...runtime.CallArgument) (runtime.RemoteObject, error)
- func (ec *ExecutionContext) EvalWithArgumentsAndReturnValue(ctx context.Context, exp string, args ...runtime.CallArgument) (core.Value, error)
- func (ec *ExecutionContext) EvalWithReturnReference(ctx context.Context, exp string) (runtime.RemoteObject, error)
- func (ec *ExecutionContext) EvalWithReturnValue(ctx context.Context, exp string) (core.Value, error)
- func (ec *ExecutionContext) ID() runtime.ExecutionContextID
- func (ec *ExecutionContext) ReadProperty(ctx context.Context, objectID runtime.RemoteObjectID, propName string) (core.Value, error)
- func (ec *ExecutionContext) ReadPropertyByNodeID(ctx context.Context, nodeID dom.NodeID, propName string) (core.Value, error)
- func (ec *ExecutionContext) ResolveNode(ctx context.Context, nodeID dom.NodeID) (runtime.RemoteObject, error)
- func (ec *ExecutionContext) ResolveRemoteObject(ctx context.Context, exp string) (runtime.RemoteObject, error)
Constants ¶
View Source
const EmptyExecutionContextID = runtime.ExecutionContextID(-1)
Variables ¶
This section is empty.
Functions ¶
func ParamFloat ¶ added in v0.7.0
func ParamString ¶
func PrepareEval ¶
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 (*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) 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 (*ExecutionContext) ID ¶ added in v0.8.0
func (ec *ExecutionContext) ID() runtime.ExecutionContextID
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 (*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)
Click to show internal directories.
Click to hide internal directories.