Documentation ¶
Index ¶
- Constants
- type CaptureScreenshotReturns
- type DisableReturn
- type EnableReturns
- type EventFrameNavigated
- type EventFrameStoppedLoading
- type Frame
- type FrameID
- type FrameNavigatedParams
- type FrameStoppedLoadingParams
- type MethodCaptureScreenshot
- type MethodDisable
- type MethodEnable
- type MethodNavigate
- type MethodReload
- type MethodStopLoading
- type NavigateReturns
- type ReloadReturns
- type StopLoadingReturns
- type TransitionType
- type Viewport
Constants ¶
View Source
const ( FrameStoppedLoading = "Page.frameStoppedLoading" // Fired when frame has stopped loading. )
View Source
const ( CaptureScreenshot = "Page.captureScreenshot" // Capture page screenshot Enable = "Page.enable" // Enables page domain notifications Disable = "Page.disable" // Disables page domain notifications. Reload = "Page.reload" // Reloads given page optionally ignoring the cache. StopLoading = "Page.stopLoading" // Force the page stop all navigations and pending resource fetches. )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureScreenshotReturns ¶
type CaptureScreenshotReturns struct {
Data string `json:"data"`
}
type DisableReturn ¶
type DisableReturn struct{}
type EnableReturns ¶
type EnableReturns struct{}
type EventFrameNavigated ¶
type EventFrameNavigated struct {
// contains filtered or unexported fields
}
func (*EventFrameNavigated) Load ¶
func (fn *EventFrameNavigated) Load(d []byte) (interface{}, error)
func (*EventFrameNavigated) Name ¶
func (fn *EventFrameNavigated) Name() string
type EventFrameStoppedLoading ¶
type EventFrameStoppedLoading struct {
// contains filtered or unexported fields
}
func (*EventFrameStoppedLoading) Load ¶
func (fsl *EventFrameStoppedLoading) Load(d []byte) (interface{}, error)
func (*EventFrameStoppedLoading) Name ¶
func (fsl *EventFrameStoppedLoading) Name() string
type Frame ¶
type Frame struct { ID string `json:"id"` ParentID string `json:"parentId,omitempty"` LoaderID network.LoaderID `json:"loaderId,omitempty"` Name string `json:"name,omitempty"` URL string `json:"url"` SecurityOrigin string `json:"securityOrigin"` MimeType string `json:"mimeType"` UnreachableURL string `json:"unreachableUrl,omitempty"` }
type FrameNavigatedParams ¶
type FrameNavigatedParams struct {
}type FrameStoppedLoadingParams ¶
type FrameStoppedLoadingParams struct {
FrameID FrameID `json:"frameId"`
}
type MethodCaptureScreenshot ¶
type MethodCaptureScreenshot struct { Format string `json:"format,omitempty"` Quality int `json:"quality,omitempty"` Clip *Viewport `json:"clip,omitempty"` FromSurface bool `json:"fromSurface,omitempty"` // contains filtered or unexported fields }
func (*MethodCaptureScreenshot) Dump ¶
func (cs *MethodCaptureScreenshot) Dump() ([]byte, error)
func (*MethodCaptureScreenshot) Load ¶
func (cs *MethodCaptureScreenshot) Load(d []byte) (interface{}, error)
func (*MethodCaptureScreenshot) Name ¶
func (cs *MethodCaptureScreenshot) Name() string
type MethodDisable ¶
type MethodDisable struct {
// contains filtered or unexported fields
}
func (*MethodDisable) Dump ¶
func (ds *MethodDisable) Dump() ([]byte, error)
func (*MethodDisable) Load ¶
func (ds *MethodDisable) Load(d []byte) (interface{}, error)
func (*MethodDisable) Name ¶
func (ds *MethodDisable) Name() string
type MethodEnable ¶
type MethodEnable struct {
// contains filtered or unexported fields
}
func (*MethodEnable) Dump ¶
func (en *MethodEnable) Dump() ([]byte, error)
func (*MethodEnable) Load ¶
func (en *MethodEnable) Load(d []byte) (interface{}, error)
func (*MethodEnable) Name ¶
func (en *MethodEnable) Name() string
type MethodNavigate ¶
type MethodNavigate struct { // contains filtered or unexported fields }
func (*MethodNavigate) Dump ¶
func (n *MethodNavigate) Dump() ([]byte, error)
func (*MethodNavigate) Load ¶
func (n *MethodNavigate) Load(d []byte) (interface{}, error)
func (*MethodNavigate) Name ¶
func (n *MethodNavigate) Name() string
type MethodReload ¶
type MethodReload struct { IgnoreCache bool `json:"ignoreCache,omitempty"` ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"` // contains filtered or unexported fields }
func (*MethodReload) Dump ¶
func (r *MethodReload) Dump() ([]byte, error)
func (*MethodReload) Load ¶
func (r *MethodReload) Load(d []byte) (interface{}, error)
func (*MethodReload) Name ¶
func (r *MethodReload) Name() string
type MethodStopLoading ¶
type MethodStopLoading struct {
// contains filtered or unexported fields
}
func (*MethodStopLoading) Dump ¶
func (sl *MethodStopLoading) Dump() ([]byte, error)
func (*MethodStopLoading) Load ¶
func (sl *MethodStopLoading) Load(d []byte) (interface{}, error)
func (*MethodStopLoading) Name ¶
func (sl *MethodStopLoading) Name() string
type NavigateReturns ¶
type NavigateReturns struct {}
type ReloadReturns ¶
type ReloadReturns struct{}
type StopLoadingReturns ¶
type StopLoadingReturns struct{}
type TransitionType ¶
type TransitionType string // allowed values: link, typed, auto_bookmark, auto_subframe, manual_subframe, generated, auto_toplevel, form_submit, reload, keyword, keyword_generated, other.
Click to show internal directories.
Click to hide internal directories.