Versions in this module Expand all Collapse all v0 v0.7.0 Mar 19, 2019 Changes in this version + const DefaultTimeout + const WaitEventAbsence + const WaitEventPresence + var HTMLDocumentType = core.NewType("HTMLDocument") + var HTMLElementType = core.NewType("HTMLElement") + var HTTPCookieType = core.NewType("HTTPCookie") + var HTTPHeaderType = core.NewType("HTTPHeader") + func Compare(first, second core.Type) int64 + func IsScreenshotFormatValid(format string) bool + func WithContext(ctx context.Context, drv Driver, opts ...Option) context.Context + func WithDefaultTimeout(ctx context.Context) (context.Context, context.CancelFunc) + type Driver interface + LoadDocument func(ctx context.Context, params LoadDocumentParams) (HTMLDocument, error) + Name func() string + func FromContext(ctx context.Context, name string) (Driver, error) + type HTMLDocument interface + CaptureScreenshot func(ctx context.Context, params ScreenshotParams) (values.Binary, error) + ClickBySelector func(ctx context.Context, selector values.String) (values.Boolean, error) + ClickBySelectorAll func(ctx context.Context, selector values.String) (values.Boolean, error) + DeleteCookies func(ctx context.Context, cookies ...HTTPCookie) error + DocumentElement func() HTMLElement + GetCookies func(ctx context.Context) (*values.Array, error) + GetURL func() core.Value + InputBySelector func(ctx context.Context, selector values.String, value core.Value, ...) (values.Boolean, error) + MoveMouseBySelector func(ctx context.Context, selector values.String) error + MoveMouseByXY func(ctx context.Context, x, y values.Float) error + Navigate func(ctx context.Context, url values.String) error + NavigateBack func(ctx context.Context, skip values.Int) (values.Boolean, error) + NavigateForward func(ctx context.Context, skip values.Int) (values.Boolean, error) + PrintToPDF func(ctx context.Context, params PDFParams) (values.Binary, error) + ScrollBottom func(ctx context.Context) error + ScrollBySelector func(ctx context.Context, selector values.String) error + ScrollByXY func(ctx context.Context, x, y values.Float) error + ScrollTop func(ctx context.Context) error + SelectBySelector func(ctx context.Context, selector values.String, value *values.Array) (*values.Array, error) + SetCookies func(ctx context.Context, cookies ...HTTPCookie) error + SetURL func(ctx context.Context, url values.String) error + WaitForAttributeBySelector func(ctx context.Context, selector, name values.String, value core.Value, ...) error + WaitForAttributeBySelectorAll func(ctx context.Context, selector, name values.String, value core.Value, ...) error + WaitForClassBySelector func(ctx context.Context, selector, class values.String, when WaitEvent) error + WaitForClassBySelectorAll func(ctx context.Context, selector, class values.String, when WaitEvent) error + WaitForElement func(ctx context.Context, selector values.String, when WaitEvent) error + WaitForNavigation func(ctx context.Context) error + WaitForStyleBySelector func(ctx context.Context, selector, name values.String, value core.Value, ...) error + WaitForStyleBySelectorAll func(ctx context.Context, selector, name values.String, value core.Value, ...) error + type HTMLElement interface + Click func(ctx context.Context) (values.Boolean, error) + GetAttribute func(ctx context.Context, name values.String) core.Value + GetAttributes func(ctx context.Context) *values.Object + GetStyle func(ctx context.Context, name values.String) (core.Value, error) + GetStyles func(ctx context.Context) (*values.Object, error) + GetValue func(ctx context.Context) core.Value + Hover func(ctx context.Context) error + InnerHTML func(ctx context.Context) values.String + InnerHTMLBySelector func(ctx context.Context, selector values.String) values.String + InnerHTMLBySelectorAll func(ctx context.Context, selector values.String) *values.Array + InnerText func(ctx context.Context) values.String + InnerTextBySelector func(ctx context.Context, selector values.String) values.String + InnerTextBySelectorAll func(ctx context.Context, selector values.String) *values.Array + Input func(ctx context.Context, value core.Value, delay values.Int) error + RemoveAttribute func(ctx context.Context, name ...values.String) error + RemoveStyle func(ctx context.Context, name ...values.String) error + ScrollIntoView func(ctx context.Context) error + Select func(ctx context.Context, value *values.Array) (*values.Array, error) + SetAttribute func(ctx context.Context, name, value values.String) error + SetAttributes func(ctx context.Context, values *values.Object) error + SetStyle func(ctx context.Context, name values.String, value core.Value) error + SetStyles func(ctx context.Context, values *values.Object) error + SetValue func(ctx context.Context, value core.Value) error + WaitForAttribute func(ctx context.Context, name values.String, value core.Value, when WaitEvent) error + WaitForClass func(ctx context.Context, class values.String, when WaitEvent) error + WaitForStyle func(ctx context.Context, name values.String, value core.Value, when WaitEvent) error + type HTMLNode interface + CountBySelector func(ctx context.Context, selector values.String) values.Int + ExistsBySelector func(ctx context.Context, selector values.String) values.Boolean + GetChildNode func(ctx context.Context, idx values.Int) core.Value + GetChildNodes func(ctx context.Context) core.Value + NodeName func() values.String + NodeType func() values.Int + QuerySelector func(ctx context.Context, selector values.String) core.Value + QuerySelectorAll func(ctx context.Context, selector values.String) core.Value + type HTTPCookie struct + Domain string + Expires time.Time + HTTPOnly bool + MaxAge int + Name string + Path string + SameSite SameSite + Secure bool + Value string + func (c HTTPCookie) Compare(other core.Value) int64 + func (c HTTPCookie) Copy() core.Value + func (c HTTPCookie) GetIn(_ context.Context, path []core.Value) (core.Value, error) + func (c HTTPCookie) Hash() uint64 + func (c HTTPCookie) MarshalJSON() ([]byte, error) + func (c HTTPCookie) String() string + func (c HTTPCookie) Type() core.Type + func (c HTTPCookie) Unwrap() interface{} + type HTTPHeader map[string][]string + func (h HTTPHeader) Compare(other core.Value) int64 + func (h HTTPHeader) Copy() core.Value + func (h HTTPHeader) Get(key string) string + func (h HTTPHeader) GetIn(_ context.Context, path []core.Value) (core.Value, error) + func (h HTTPHeader) Hash() uint64 + func (h HTTPHeader) MarshalJSON() ([]byte, error) + func (h HTTPHeader) Set(key, value string) + func (h HTTPHeader) String() string + func (h HTTPHeader) Type() core.Type + func (h HTTPHeader) Unwrap() interface{} + type LoadDocumentParams struct + Cookies []HTTPCookie + Header HTTPHeader + KeepCookies bool + URL string + UserAgent string + type Option func(drv Driver, opts *options) + func AsDefault() Option + type PDFParams struct + DisplayHeaderFooter values.Boolean + FooterTemplate values.String + HeaderTemplate values.String + IgnoreInvalidPageRanges values.Boolean + Landscape values.Boolean + MarginBottom values.Float + MarginLeft values.Float + MarginRight values.Float + MarginTop values.Float + PageRanges values.String + PaperHeight values.Float + PaperWidth values.Float + PreferCSSPageSize values.Boolean + PrintBackground values.Boolean + Scale values.Float + func NewDefaultHTMLPDFParams() PDFParams + type SameSite int + const SameSiteDefaultMode + const SameSiteLaxMode + const SameSiteStrictMode + type ScreenshotFormat string + const ScreenshotFormatJPEG + const ScreenshotFormatPNG + type ScreenshotParams struct + Format ScreenshotFormat + Height values.Float + Quality values.Int + Width values.Float + X values.Float + Y values.Float + type WaitEvent int v0.6.0 Dec 25, 2018 Changes in this version + func WithDynamic(ctx context.Context, drv Dynamic) context.Context + func WithStatic(ctx context.Context, drv Static) context.Context + type Dynamic interface + GetDocument func(ctx context.Context, url values.String) (values.DHTMLDocument, error) + func DynamicFrom(ctx context.Context) (Dynamic, error) + type Static interface + GetDocument func(ctx context.Context, url values.String) (values.HTMLDocument, error) + ParseDocument func(ctx context.Context, str values.String) (values.HTMLDocument, error) + func StaticFrom(ctx context.Context) (Static, error)