page

package
v0.0.0-...-fc11c2f Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrameNavigated      = "Page.frameNavigated"      // Fired once navigation of the frame has completed. Frame is now associated with the new loader.
	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.
	Navigate          = "Page.navigate"          // Navigates current page to the given URL.
	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) Domain

func (d EventFrameNavigated) Domain() string

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) Domain

func (d EventFrameStoppedLoading) Domain() string

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 FrameID

type FrameID string // Unique frame identifier

type FrameNavigatedParams

type FrameNavigatedParams struct {
	Frame *Frame `json:"frame"`
}

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) Domain

func (d MethodCaptureScreenshot) Domain() string

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) Domain

func (d MethodDisable) Domain() string

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) Domain

func (d MethodEnable) Domain() string

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 {
	URL            string         `json:"url"`
	Referrer       string         `json:"referrer,omitempty"`
	TransitionType TransitionType `json:"transitionType,omitempty"`
	// contains filtered or unexported fields
}

func (MethodNavigate) Domain

func (d MethodNavigate) Domain() string

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) Domain

func (d MethodReload) Domain() string

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) Domain

func (d MethodStopLoading) Domain() string

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 struct {
	FrameID   FrameID          `json:"frameId"`
	LoaderID  network.LoaderID `json:"loaderId,omitempty"`
	ErrorText string           `json:"errorText,omitempty"`
}

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.

type Viewport

type Viewport struct {
	X      int `json:"x"`
	Y      int `json:"y"`
	Width  int `json:"width"`
	Height int `json:"height"`
	Scale  int `json:"scale"`
}

Viewport for capturing screenshot.

Jump to

Keyboard shortcuts

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