Versions in this module Expand all Collapse all v0 v0.6.0 Dec 25, 2018 Changes in this version + const BlankPageURL + const DefaultAddress + const DefaultTimeout + type Driver struct + func NewDriver(opts ...Option) *Driver + func (drv *Driver) Close() error + func (drv *Driver) GetDocument(ctx context.Context, targetURL values.String) (values.DHTMLDocument, error) + type HTMLDocument struct + func LoadHTMLDocument(ctx context.Context, conn *rpcc.Conn, client *cdp.Client, url string) (*HTMLDocument, error) + func NewHTMLDocument(logger *zerolog.Logger, conn *rpcc.Conn, client *cdp.Client, ...) *HTMLDocument + func (doc *HTMLDocument) CaptureScreenshot(params values.HTMLScreenshotParams) (values.Binary, error) + func (doc *HTMLDocument) ClickBySelector(selector values.String) (values.Boolean, error) + func (doc *HTMLDocument) ClickBySelectorAll(selector values.String) (values.Boolean, error) + func (doc *HTMLDocument) Close() error + func (doc *HTMLDocument) Compare(other core.Value) int + func (doc *HTMLDocument) Copy() core.Value + func (doc *HTMLDocument) CountBySelector(selector values.String) values.Int + func (doc *HTMLDocument) ExistsBySelector(selector values.String) values.Boolean + func (doc *HTMLDocument) GetAttribute(name values.String) core.Value + func (doc *HTMLDocument) GetAttributes() core.Value + func (doc *HTMLDocument) GetChildNode(idx values.Int) core.Value + func (doc *HTMLDocument) GetChildNodes() core.Value + func (doc *HTMLDocument) Hash() uint64 + func (doc *HTMLDocument) HoverBySelector(selector values.String) error + func (doc *HTMLDocument) InnerHTML() values.String + func (doc *HTMLDocument) InnerHTMLBySelector(selector values.String) values.String + func (doc *HTMLDocument) InnerHTMLBySelectorAll(selector values.String) *values.Array + func (doc *HTMLDocument) InnerText() values.String + func (doc *HTMLDocument) InnerTextBySelector(selector values.String) values.String + func (doc *HTMLDocument) InnerTextBySelectorAll(selector values.String) *values.Array + func (doc *HTMLDocument) InputBySelector(selector values.String, value core.Value, delay values.Int) (values.Boolean, error) + func (doc *HTMLDocument) Length() values.Int + func (doc *HTMLDocument) MarshalJSON() ([]byte, error) + func (doc *HTMLDocument) Navigate(url values.String, timeout values.Int) error + func (doc *HTMLDocument) NavigateBack(skip values.Int, timeout values.Int) (values.Boolean, error) + func (doc *HTMLDocument) NavigateForward(skip values.Int, timeout values.Int) (values.Boolean, error) + func (doc *HTMLDocument) NodeName() values.String + func (doc *HTMLDocument) NodeType() values.Int + func (doc *HTMLDocument) PrintToPDF(params values.HTMLPDFParams) (values.Binary, error) + func (doc *HTMLDocument) QuerySelector(selector values.String) core.Value + func (doc *HTMLDocument) QuerySelectorAll(selector values.String) core.Value + func (doc *HTMLDocument) ScrollBottom() error + func (doc *HTMLDocument) ScrollBySelector(selector values.String) error + func (doc *HTMLDocument) ScrollTop() error + func (doc *HTMLDocument) SelectBySelector(selector values.String, value *values.Array) (*values.Array, error) + func (doc *HTMLDocument) String() string + func (doc *HTMLDocument) Type() core.Type + func (doc *HTMLDocument) URL() core.Value + func (doc *HTMLDocument) Unwrap() interface{} + func (doc *HTMLDocument) Value() core.Value + func (doc *HTMLDocument) WaitForClass(selector, class values.String, timeout values.Int) error + func (doc *HTMLDocument) WaitForClassAll(selector, class values.String, timeout values.Int) error + func (doc *HTMLDocument) WaitForNavigation(timeout values.Int) error + func (doc *HTMLDocument) WaitForSelector(selector values.String, timeout values.Int) error + type HTMLElement struct + func LoadElement(ctx context.Context, logger *zerolog.Logger, client *cdp.Client, ...) (*HTMLElement, error) + func NewHTMLElement(logger *zerolog.Logger, client *cdp.Client, broker *events.EventBroker, ...) *HTMLElement + func (el *HTMLElement) Click() (values.Boolean, error) + func (el *HTMLElement) Close() error + func (el *HTMLElement) Compare(other core.Value) int + func (el *HTMLElement) Copy() core.Value + func (el *HTMLElement) CountBySelector(selector values.String) values.Int + func (el *HTMLElement) ExistsBySelector(selector values.String) values.Boolean + func (el *HTMLElement) GetAttribute(name values.String) core.Value + func (el *HTMLElement) GetAttributes() core.Value + func (el *HTMLElement) GetChildNode(idx values.Int) core.Value + func (el *HTMLElement) GetChildNodes() core.Value + func (el *HTMLElement) Hash() uint64 + func (el *HTMLElement) Hover() error + func (el *HTMLElement) InnerHTML() values.String + func (el *HTMLElement) InnerHTMLBySelector(selector values.String) values.String + func (el *HTMLElement) InnerHTMLBySelectorAll(selector values.String) *values.Array + func (el *HTMLElement) InnerText() values.String + func (el *HTMLElement) InnerTextBySelector(selector values.String) values.String + func (el *HTMLElement) InnerTextBySelectorAll(selector values.String) *values.Array + func (el *HTMLElement) Input(value core.Value, delay values.Int) error + func (el *HTMLElement) IsConnected() values.Boolean + func (el *HTMLElement) Length() values.Int + func (el *HTMLElement) MarshalJSON() ([]byte, error) + func (el *HTMLElement) NodeName() values.String + func (el *HTMLElement) NodeType() values.Int + func (el *HTMLElement) QuerySelector(selector values.String) core.Value + func (el *HTMLElement) QuerySelectorAll(selector values.String) core.Value + func (el *HTMLElement) ScrollIntoView() error + func (el *HTMLElement) Select(value *values.Array) (*values.Array, error) + func (el *HTMLElement) String() string + func (el *HTMLElement) Type() core.Type + func (el *HTMLElement) Unwrap() interface{} + func (el *HTMLElement) Value() core.Value + func (el *HTMLElement) WaitForClass(class values.String, timeout values.Int) error + type HTMLElementIdentity struct + type Option func(opts *Options) + func WithAddress(address string) Option + func WithProxy(address string) Option + func WithUserAgent(value string) Option + type Options struct + type Quad struct + X float64 + Y float64