Documentation ¶
Index ¶
- Constants
- Variables
- func EvalXPathTo(selection *goquery.Selection, expression string) (core.Value, error)
- func EvalXPathToElement(selection *goquery.Selection, expression string) (drivers.HTMLElement, error)
- func EvalXPathToNode(selection *goquery.Selection, expression string) (drivers.HTMLNode, error)
- func EvalXPathToNodes(selection *goquery.Selection, expression string) (*values.Array, error)
- func EvalXPathToNodesWith(selection *goquery.Selection, expression string, ...) (*values.Array, error)
- func NewHTMLElement(node *goquery.Selection) (drivers.HTMLElement, error)
- type Driver
- type HTMLDocument
- func (doc *HTMLDocument) Clone() core.Cloneable
- func (doc *HTMLDocument) Close() error
- func (doc *HTMLDocument) Compare(other core.Value) int64
- func (doc *HTMLDocument) Copy() core.Value
- func (doc *HTMLDocument) CountBySelector(ctx context.Context, selector drivers.QuerySelector) (values.Int, error)
- func (doc *HTMLDocument) ExistsBySelector(ctx context.Context, selector drivers.QuerySelector) (values.Boolean, error)
- func (doc *HTMLDocument) GetChildDocuments(_ context.Context) (*values.Array, error)
- func (doc *HTMLDocument) GetChildNode(ctx context.Context, idx values.Int) (core.Value, error)
- func (doc *HTMLDocument) GetChildNodes(ctx context.Context) (*values.Array, error)
- func (doc *HTMLDocument) GetElement() drivers.HTMLElement
- func (doc *HTMLDocument) GetIn(ctx context.Context, path []core.Value) (core.Value, core.PathError)
- func (doc *HTMLDocument) GetName() values.String
- func (doc *HTMLDocument) GetNodeName(_ context.Context) (values.String, error)
- func (doc *HTMLDocument) GetNodeType(_ context.Context) (values.Int, error)
- func (doc *HTMLDocument) GetParentDocument(_ context.Context) (drivers.HTMLDocument, error)
- func (doc *HTMLDocument) GetTitle() values.String
- func (doc *HTMLDocument) GetURL() values.String
- func (doc *HTMLDocument) Hash() uint64
- func (doc *HTMLDocument) Iterate(_ context.Context) (core.Iterator, error)
- func (doc *HTMLDocument) Length() values.Int
- func (doc *HTMLDocument) MarshalJSON() ([]byte, error)
- func (doc *HTMLDocument) MoveMouseByXY(_ context.Context, _, _ values.Float) error
- func (doc *HTMLDocument) QuerySelector(ctx context.Context, selector drivers.QuerySelector) (core.Value, error)
- func (doc *HTMLDocument) QuerySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
- func (doc *HTMLDocument) Scroll(_ context.Context, _ drivers.ScrollOptions) error
- func (doc *HTMLDocument) ScrollBottom(_ context.Context, _ drivers.ScrollOptions) error
- func (doc *HTMLDocument) ScrollBySelector(_ context.Context, _ drivers.QuerySelector, _ drivers.ScrollOptions) error
- func (doc *HTMLDocument) ScrollTop(_ context.Context, _ drivers.ScrollOptions) error
- func (doc *HTMLDocument) SetIn(ctx context.Context, path []core.Value, value core.Value) core.PathError
- func (doc *HTMLDocument) String() string
- func (doc *HTMLDocument) Type() core.Type
- func (doc *HTMLDocument) Unwrap() interface{}
- func (doc *HTMLDocument) XPath(ctx context.Context, expression values.String) (core.Value, error)
- type HTMLElement
- func (el *HTMLElement) Blur(_ context.Context) error
- func (el *HTMLElement) BlurBySelector(_ context.Context, _ drivers.QuerySelector) error
- func (el *HTMLElement) Clear(_ context.Context) error
- func (el *HTMLElement) ClearBySelector(_ context.Context, _ drivers.QuerySelector) error
- func (el *HTMLElement) Click(_ context.Context, _ values.Int) error
- func (el *HTMLElement) ClickBySelector(_ context.Context, _ drivers.QuerySelector, _ values.Int) error
- func (el *HTMLElement) ClickBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.Int) error
- func (el *HTMLElement) Close() error
- func (el *HTMLElement) Compare(other core.Value) int64
- func (el *HTMLElement) Copy() core.Value
- func (el *HTMLElement) CountBySelector(_ context.Context, selector drivers.QuerySelector) (values.Int, error)
- func (el *HTMLElement) ExistsBySelector(_ context.Context, selector drivers.QuerySelector) (values.Boolean, error)
- func (el *HTMLElement) Focus(_ context.Context) error
- func (el *HTMLElement) FocusBySelector(_ context.Context, _ drivers.QuerySelector) error
- func (el *HTMLElement) GetAttribute(ctx context.Context, name values.String) (core.Value, error)
- func (el *HTMLElement) GetAttributes(_ context.Context) (*values.Object, error)
- func (el *HTMLElement) GetChildNode(_ context.Context, idx values.Int) (core.Value, error)
- func (el *HTMLElement) GetChildNodes(_ context.Context) (*values.Array, error)
- func (el *HTMLElement) GetIn(ctx context.Context, path []core.Value) (core.Value, core.PathError)
- func (el *HTMLElement) GetInnerHTML(_ context.Context) (values.String, error)
- func (el *HTMLElement) GetInnerHTMLBySelector(ctx context.Context, selector drivers.QuerySelector) (values.String, error)
- func (el *HTMLElement) GetInnerHTMLBySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
- func (el *HTMLElement) GetInnerText(_ context.Context) (values.String, error)
- func (el *HTMLElement) GetInnerTextBySelector(ctx context.Context, selector drivers.QuerySelector) (values.String, error)
- func (el *HTMLElement) GetInnerTextBySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
- func (el *HTMLElement) GetNextElementSibling(_ context.Context) (core.Value, error)
- func (el *HTMLElement) GetNodeName(_ context.Context) (values.String, error)
- func (el *HTMLElement) GetNodeType(_ context.Context) (values.Int, error)
- func (el *HTMLElement) GetParentElement(_ context.Context) (core.Value, error)
- func (el *HTMLElement) GetPreviousElementSibling(_ context.Context) (core.Value, error)
- func (el *HTMLElement) GetStyle(ctx context.Context, name values.String) (core.Value, error)
- func (el *HTMLElement) GetStyles(ctx context.Context) (*values.Object, error)
- func (el *HTMLElement) GetValue(_ context.Context) (core.Value, error)
- func (el *HTMLElement) Hash() uint64
- func (el *HTMLElement) Hover(_ context.Context) error
- func (el *HTMLElement) HoverBySelector(_ context.Context, _ drivers.QuerySelector) error
- func (el *HTMLElement) Input(_ context.Context, _ core.Value, _ values.Int) error
- func (el *HTMLElement) InputBySelector(_ context.Context, _ drivers.QuerySelector, _ core.Value, _ values.Int) error
- func (el *HTMLElement) Iterate(_ context.Context) (core.Iterator, error)
- func (el *HTMLElement) Length() values.Int
- func (el *HTMLElement) MarshalJSON() ([]byte, error)
- func (el *HTMLElement) Press(_ context.Context, _ []values.String, _ values.Int) error
- func (el *HTMLElement) PressBySelector(_ context.Context, _ drivers.QuerySelector, _ []values.String, _ values.Int) error
- func (el *HTMLElement) QuerySelector(_ context.Context, selector drivers.QuerySelector) (core.Value, error)
- func (el *HTMLElement) QuerySelectorAll(_ context.Context, selector drivers.QuerySelector) (*values.Array, error)
- func (el *HTMLElement) RemoveAttribute(_ context.Context, name ...values.String) error
- func (el *HTMLElement) RemoveStyle(ctx context.Context, name ...values.String) error
- func (el *HTMLElement) ScrollIntoView(_ context.Context, _ drivers.ScrollOptions) error
- func (el *HTMLElement) Select(_ context.Context, _ *values.Array) (*values.Array, error)
- func (el *HTMLElement) SelectBySelector(_ context.Context, _ drivers.QuerySelector, _ *values.Array) (*values.Array, error)
- func (el *HTMLElement) SetAttribute(_ context.Context, name, value values.String) error
- func (el *HTMLElement) SetAttributes(ctx context.Context, attrs *values.Object) error
- func (el *HTMLElement) SetIn(ctx context.Context, path []core.Value, value core.Value) core.PathError
- func (el *HTMLElement) SetInnerHTML(_ context.Context, value values.String) error
- func (el *HTMLElement) SetInnerHTMLBySelector(ctx context.Context, selector drivers.QuerySelector, innerHTML values.String) error
- func (el *HTMLElement) SetInnerText(_ context.Context, innerText values.String) error
- func (el *HTMLElement) SetInnerTextBySelector(ctx context.Context, selector drivers.QuerySelector, innerText values.String) error
- func (el *HTMLElement) SetStyle(ctx context.Context, name, value values.String) error
- func (el *HTMLElement) SetStyles(ctx context.Context, newStyles *values.Object) error
- func (el *HTMLElement) SetValue(_ context.Context, value core.Value) error
- func (el *HTMLElement) String() string
- func (el *HTMLElement) Type() core.Type
- func (el *HTMLElement) Unwrap() interface{}
- func (el *HTMLElement) WaitForAttribute(_ context.Context, _ values.String, _ core.Value, _ drivers.WaitEvent) error
- func (el *HTMLElement) WaitForAttributeBySelector(_ context.Context, _ drivers.QuerySelector, _ values.String, _ core.Value, ...) error
- func (el *HTMLElement) WaitForAttributeBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.String, _ core.Value, ...) error
- func (el *HTMLElement) WaitForClass(_ context.Context, _ values.String, _ drivers.WaitEvent) error
- func (el *HTMLElement) WaitForClassBySelector(_ context.Context, _ drivers.QuerySelector, _ values.String, ...) error
- func (el *HTMLElement) WaitForClassBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.String, ...) error
- func (el *HTMLElement) WaitForElement(_ context.Context, _ drivers.QuerySelector, _ drivers.WaitEvent) error
- func (el *HTMLElement) WaitForElementAll(_ context.Context, _ drivers.QuerySelector, _ drivers.WaitEvent) error
- func (el *HTMLElement) WaitForStyle(_ context.Context, _ values.String, _ core.Value, _ drivers.WaitEvent) error
- func (el *HTMLElement) WaitForStyleBySelector(_ context.Context, _ drivers.QuerySelector, _ values.String, _ core.Value, ...) error
- func (el *HTMLElement) WaitForStyleBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.String, _ core.Value, ...) error
- func (el *HTMLElement) XPath(_ context.Context, expression values.String) (core.Value, error)
- type HTMLPage
- func (p *HTMLPage) CaptureScreenshot(_ context.Context, _ drivers.ScreenshotParams) (values.Binary, error)
- func (p *HTMLPage) Close() error
- func (p *HTMLPage) Compare(other core.Value) int64
- func (p *HTMLPage) Copy() core.Value
- func (p *HTMLPage) DeleteCookies(_ context.Context, _ *drivers.HTTPCookies) error
- func (p *HTMLPage) GetCookies(_ context.Context) (*drivers.HTTPCookies, error)
- func (p *HTMLPage) GetFrame(ctx context.Context, idx values.Int) (core.Value, error)
- func (p *HTMLPage) GetFrames(ctx context.Context) (*values.Array, error)
- func (p *HTMLPage) GetIn(ctx context.Context, path []core.Value) (core.Value, core.PathError)
- func (p *HTMLPage) GetMainFrame() drivers.HTMLDocument
- func (p *HTMLPage) GetResponse(_ context.Context) (drivers.HTTPResponse, error)
- func (p *HTMLPage) GetURL() values.String
- func (p *HTMLPage) Hash() uint64
- func (p *HTMLPage) IsClosed() values.Boolean
- func (p *HTMLPage) Iterate(ctx context.Context) (core.Iterator, error)
- func (p *HTMLPage) Length() values.Int
- func (p *HTMLPage) MarshalJSON() ([]byte, error)
- func (p *HTMLPage) Navigate(_ context.Context, _ values.String) error
- func (p *HTMLPage) NavigateBack(_ context.Context, _ values.Int) (values.Boolean, error)
- func (p *HTMLPage) NavigateForward(_ context.Context, _ values.Int) (values.Boolean, error)
- func (p *HTMLPage) PrintToPDF(_ context.Context, _ drivers.PDFParams) (values.Binary, error)
- func (p *HTMLPage) SetCookies(_ context.Context, _ *drivers.HTTPCookies) error
- func (p *HTMLPage) SetIn(ctx context.Context, path []core.Value, value core.Value) core.PathError
- func (p *HTMLPage) String() string
- func (p *HTMLPage) Subscribe(_ context.Context, _ events.Subscription) (events.Stream, error)
- func (p *HTMLPage) Type() core.Type
- func (p *HTMLPage) Unwrap() interface{}
- func (p *HTMLPage) WaitForFrameNavigation(_ context.Context, _ drivers.HTMLDocument, _ values.String) error
- func (p *HTMLPage) WaitForNavigation(_ context.Context, _ values.String) error
- type Option
- func WithAllowedHTTPCode(httpCode int) Option
- func WithAllowedHTTPCodes(httpCodes []int) Option
- func WithConcurrency(value int) Option
- func WithCookie(cookie drivers.HTTPCookie) Option
- func WithCookies(cookies []drivers.HTTPCookie) Option
- func WithCustomName(name string) Option
- func WithCustomTransport(transport *stdhttp.Transport) Option
- func WithDefaultBackoff() Option
- func WithExponentialBackoff() Option
- func WithHeader(name string, value []string) Option
- func WithHeaders(headers *drivers.HTTPHeaders) Option
- func WithLinearBackoff() Option
- func WithMaxRetries(value int) Option
- func WithProxy(address string) Option
- func WithTimeout(duration time.Duration) Option
- func WithUserAgent(value string) Option
- type Options
Constants ¶
View Source
const DriverName = "http"
Variables ¶
View Source
var ( DefaultConcurrency = 1 DefaultMaxRetries = 5 DefaultTimeout = time.Second * 30 )
Functions ¶
func EvalXPathTo ¶ added in v0.16.0
func EvalXPathToElement ¶ added in v0.16.0
func EvalXPathToNode ¶ added in v0.16.0
func EvalXPathToNodes ¶ added in v0.16.0
func EvalXPathToNodesWith ¶ added in v0.16.0
func NewHTMLElement ¶
func NewHTMLElement(node *goquery.Selection) (drivers.HTMLElement, error)
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
type HTMLDocument ¶
type HTMLDocument struct {
// contains filtered or unexported fields
}
func NewHTMLDocument ¶
func NewHTMLDocument( node *goquery.Document, url string, parent drivers.HTMLDocument, ) (*HTMLDocument, error)
func NewRootHTMLDocument ¶ added in v0.8.0
func NewRootHTMLDocument( node *goquery.Document, url string, ) (*HTMLDocument, error)
func (*HTMLDocument) Clone ¶ added in v0.7.0
func (doc *HTMLDocument) Clone() core.Cloneable
func (*HTMLDocument) Close ¶ added in v0.7.0
func (doc *HTMLDocument) Close() error
func (*HTMLDocument) Copy ¶ added in v0.7.0
func (doc *HTMLDocument) Copy() core.Value
func (*HTMLDocument) CountBySelector ¶ added in v0.7.0
func (doc *HTMLDocument) CountBySelector(ctx context.Context, selector drivers.QuerySelector) (values.Int, error)
func (*HTMLDocument) ExistsBySelector ¶ added in v0.7.0
func (doc *HTMLDocument) ExistsBySelector(ctx context.Context, selector drivers.QuerySelector) (values.Boolean, error)
func (*HTMLDocument) GetChildDocuments ¶ added in v0.8.0
func (*HTMLDocument) GetChildNode ¶ added in v0.7.0
func (*HTMLDocument) GetChildNodes ¶ added in v0.7.0
func (*HTMLDocument) GetElement ¶ added in v0.8.0
func (doc *HTMLDocument) GetElement() drivers.HTMLElement
func (*HTMLDocument) GetName ¶ added in v0.8.0
func (doc *HTMLDocument) GetName() values.String
func (*HTMLDocument) GetNodeName ¶ added in v0.8.0
func (*HTMLDocument) GetNodeType ¶ added in v0.8.0
func (*HTMLDocument) GetParentDocument ¶ added in v0.8.0
func (doc *HTMLDocument) GetParentDocument(_ context.Context) (drivers.HTMLDocument, error)
func (*HTMLDocument) GetTitle ¶ added in v0.8.0
func (doc *HTMLDocument) GetTitle() values.String
func (*HTMLDocument) GetURL ¶ added in v0.7.0
func (doc *HTMLDocument) GetURL() values.String
func (*HTMLDocument) Hash ¶ added in v0.7.0
func (doc *HTMLDocument) Hash() uint64
func (*HTMLDocument) Length ¶ added in v0.7.0
func (doc *HTMLDocument) Length() values.Int
func (*HTMLDocument) MarshalJSON ¶ added in v0.7.0
func (doc *HTMLDocument) MarshalJSON() ([]byte, error)
func (*HTMLDocument) MoveMouseByXY ¶ added in v0.7.0
func (*HTMLDocument) QuerySelector ¶ added in v0.7.0
func (doc *HTMLDocument) QuerySelector(ctx context.Context, selector drivers.QuerySelector) (core.Value, error)
func (*HTMLDocument) QuerySelectorAll ¶ added in v0.7.0
func (doc *HTMLDocument) QuerySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
func (*HTMLDocument) Scroll ¶ added in v0.16.0
func (doc *HTMLDocument) Scroll(_ context.Context, _ drivers.ScrollOptions) error
func (*HTMLDocument) ScrollBottom ¶ added in v0.7.0
func (doc *HTMLDocument) ScrollBottom(_ context.Context, _ drivers.ScrollOptions) error
func (*HTMLDocument) ScrollBySelector ¶ added in v0.7.0
func (doc *HTMLDocument) ScrollBySelector(_ context.Context, _ drivers.QuerySelector, _ drivers.ScrollOptions) error
func (*HTMLDocument) ScrollTop ¶ added in v0.7.0
func (doc *HTMLDocument) ScrollTop(_ context.Context, _ drivers.ScrollOptions) error
func (*HTMLDocument) String ¶ added in v0.7.0
func (doc *HTMLDocument) String() string
func (*HTMLDocument) Type ¶
func (doc *HTMLDocument) Type() core.Type
func (*HTMLDocument) Unwrap ¶ added in v0.7.0
func (doc *HTMLDocument) Unwrap() interface{}
type HTMLElement ¶
type HTMLElement struct {
// contains filtered or unexported fields
}
func (*HTMLElement) BlurBySelector ¶ added in v0.9.0
func (el *HTMLElement) BlurBySelector(_ context.Context, _ drivers.QuerySelector) error
func (*HTMLElement) ClearBySelector ¶ added in v0.9.0
func (el *HTMLElement) ClearBySelector(_ context.Context, _ drivers.QuerySelector) error
func (*HTMLElement) ClickBySelector ¶ added in v0.9.0
func (el *HTMLElement) ClickBySelector(_ context.Context, _ drivers.QuerySelector, _ values.Int) error
func (*HTMLElement) ClickBySelectorAll ¶ added in v0.9.0
func (el *HTMLElement) ClickBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.Int) error
func (*HTMLElement) Close ¶ added in v0.7.0
func (el *HTMLElement) Close() error
func (*HTMLElement) Copy ¶
func (el *HTMLElement) Copy() core.Value
func (*HTMLElement) CountBySelector ¶
func (el *HTMLElement) CountBySelector(_ context.Context, selector drivers.QuerySelector) (values.Int, error)
func (*HTMLElement) ExistsBySelector ¶
func (el *HTMLElement) ExistsBySelector(_ context.Context, selector drivers.QuerySelector) (values.Boolean, error)
func (*HTMLElement) FocusBySelector ¶ added in v0.9.0
func (el *HTMLElement) FocusBySelector(_ context.Context, _ drivers.QuerySelector) error
func (*HTMLElement) GetAttribute ¶
func (*HTMLElement) GetAttributes ¶
func (*HTMLElement) GetChildNode ¶
func (*HTMLElement) GetChildNodes ¶
func (*HTMLElement) GetInnerHTML ¶ added in v0.8.0
func (*HTMLElement) GetInnerHTMLBySelector ¶ added in v0.8.0
func (el *HTMLElement) GetInnerHTMLBySelector(ctx context.Context, selector drivers.QuerySelector) (values.String, error)
func (*HTMLElement) GetInnerHTMLBySelectorAll ¶ added in v0.8.0
func (el *HTMLElement) GetInnerHTMLBySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
func (*HTMLElement) GetInnerText ¶ added in v0.8.0
func (*HTMLElement) GetInnerTextBySelector ¶ added in v0.8.0
func (el *HTMLElement) GetInnerTextBySelector(ctx context.Context, selector drivers.QuerySelector) (values.String, error)
func (*HTMLElement) GetInnerTextBySelectorAll ¶ added in v0.8.0
func (el *HTMLElement) GetInnerTextBySelectorAll(ctx context.Context, selector drivers.QuerySelector) (*values.Array, error)
func (*HTMLElement) GetNextElementSibling ¶ added in v0.13.0
func (*HTMLElement) GetNodeName ¶ added in v0.8.0
func (*HTMLElement) GetNodeType ¶ added in v0.8.0
func (*HTMLElement) GetParentElement ¶ added in v0.13.0
func (*HTMLElement) GetPreviousElementSibling ¶ added in v0.13.0
func (*HTMLElement) Hash ¶
func (el *HTMLElement) Hash() uint64
func (*HTMLElement) HoverBySelector ¶ added in v0.9.0
func (el *HTMLElement) HoverBySelector(_ context.Context, _ drivers.QuerySelector) error
func (*HTMLElement) InputBySelector ¶ added in v0.9.0
func (el *HTMLElement) InputBySelector(_ context.Context, _ drivers.QuerySelector, _ core.Value, _ values.Int) error
func (*HTMLElement) Length ¶
func (el *HTMLElement) Length() values.Int
func (*HTMLElement) MarshalJSON ¶
func (el *HTMLElement) MarshalJSON() ([]byte, error)
func (*HTMLElement) PressBySelector ¶ added in v0.15.0
func (el *HTMLElement) PressBySelector(_ context.Context, _ drivers.QuerySelector, _ []values.String, _ values.Int) error
func (*HTMLElement) QuerySelector ¶
func (el *HTMLElement) QuerySelector(_ context.Context, selector drivers.QuerySelector) (core.Value, error)
func (*HTMLElement) QuerySelectorAll ¶
func (el *HTMLElement) QuerySelectorAll(_ context.Context, selector drivers.QuerySelector) (*values.Array, error)
func (*HTMLElement) RemoveAttribute ¶ added in v0.7.0
func (*HTMLElement) RemoveStyle ¶ added in v0.7.0
func (*HTMLElement) ScrollIntoView ¶ added in v0.7.0
func (el *HTMLElement) ScrollIntoView(_ context.Context, _ drivers.ScrollOptions) error
func (*HTMLElement) SelectBySelector ¶ added in v0.9.0
func (el *HTMLElement) SelectBySelector(_ context.Context, _ drivers.QuerySelector, _ *values.Array) (*values.Array, error)
func (*HTMLElement) SetAttribute ¶ added in v0.7.0
func (*HTMLElement) SetAttributes ¶ added in v0.7.0
func (*HTMLElement) SetInnerHTML ¶ added in v0.8.0
func (*HTMLElement) SetInnerHTMLBySelector ¶ added in v0.8.0
func (el *HTMLElement) SetInnerHTMLBySelector(ctx context.Context, selector drivers.QuerySelector, innerHTML values.String) error
func (*HTMLElement) SetInnerText ¶ added in v0.8.0
func (*HTMLElement) SetInnerTextBySelector ¶ added in v0.8.0
func (el *HTMLElement) SetInnerTextBySelector(ctx context.Context, selector drivers.QuerySelector, innerText values.String) error
func (*HTMLElement) String ¶
func (el *HTMLElement) String() string
func (*HTMLElement) Type ¶
func (el *HTMLElement) Type() core.Type
func (*HTMLElement) Unwrap ¶
func (el *HTMLElement) Unwrap() interface{}
func (*HTMLElement) WaitForAttribute ¶ added in v0.7.0
func (*HTMLElement) WaitForAttributeBySelector ¶ added in v0.16.0
func (*HTMLElement) WaitForAttributeBySelectorAll ¶ added in v0.16.0
func (*HTMLElement) WaitForClass ¶ added in v0.7.0
func (*HTMLElement) WaitForClassBySelector ¶ added in v0.16.0
func (el *HTMLElement) WaitForClassBySelector(_ context.Context, _ drivers.QuerySelector, _ values.String, _ drivers.WaitEvent) error
func (*HTMLElement) WaitForClassBySelectorAll ¶ added in v0.16.0
func (el *HTMLElement) WaitForClassBySelectorAll(_ context.Context, _ drivers.QuerySelector, _ values.String, _ drivers.WaitEvent) error
func (*HTMLElement) WaitForElement ¶ added in v0.16.0
func (el *HTMLElement) WaitForElement(_ context.Context, _ drivers.QuerySelector, _ drivers.WaitEvent) error
func (*HTMLElement) WaitForElementAll ¶ added in v0.16.0
func (el *HTMLElement) WaitForElementAll(_ context.Context, _ drivers.QuerySelector, _ drivers.WaitEvent) error
func (*HTMLElement) WaitForStyle ¶ added in v0.7.0
func (*HTMLElement) WaitForStyleBySelector ¶ added in v0.16.0
func (*HTMLElement) WaitForStyleBySelectorAll ¶ added in v0.16.0
type HTMLPage ¶ added in v0.8.0
type HTMLPage struct {
// contains filtered or unexported fields
}
func NewHTMLPage ¶ added in v0.8.0
func NewHTMLPage( qdoc *goquery.Document, url string, response drivers.HTTPResponse, cookies *drivers.HTTPCookies, ) (*HTMLPage, error)
func (*HTMLPage) CaptureScreenshot ¶ added in v0.8.0
func (*HTMLPage) DeleteCookies ¶ added in v0.8.0
func (*HTMLPage) GetCookies ¶ added in v0.8.0
func (*HTMLPage) GetMainFrame ¶ added in v0.8.0
func (p *HTMLPage) GetMainFrame() drivers.HTMLDocument
func (*HTMLPage) GetResponse ¶ added in v0.10.0
func (*HTMLPage) MarshalJSON ¶ added in v0.8.0
func (*HTMLPage) NavigateBack ¶ added in v0.8.0
func (*HTMLPage) NavigateForward ¶ added in v0.8.0
func (*HTMLPage) PrintToPDF ¶ added in v0.8.0
func (*HTMLPage) SetCookies ¶ added in v0.8.0
func (*HTMLPage) WaitForFrameNavigation ¶ added in v0.12.0
type Option ¶
type Option func(opts *Options)
func WithAllowedHTTPCode ¶ added in v0.10.0
func WithAllowedHTTPCodes ¶ added in v0.10.0
func WithConcurrency ¶
func WithCookie ¶ added in v0.9.0
func WithCookie(cookie drivers.HTTPCookie) Option
func WithCookies ¶ added in v0.9.0
func WithCookies(cookies []drivers.HTTPCookie) Option
func WithCustomName ¶ added in v0.9.0
func WithCustomTransport ¶ added in v0.14.0
func WithDefaultBackoff ¶
func WithDefaultBackoff() Option
func WithExponentialBackoff ¶
func WithExponentialBackoff() Option
func WithHeader ¶ added in v0.9.0
func WithHeaders ¶ added in v0.9.0
func WithHeaders(headers *drivers.HTTPHeaders) Option
func WithLinearBackoff ¶
func WithLinearBackoff() Option
func WithMaxRetries ¶
func WithTimeout ¶ added in v0.16.2
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.