Versions in this module Expand all Collapse all v0 v0.1.0 Aug 2, 2023 Changes in this version + func NewElement(ele *rod.Element, vm *goja.Runtime) goja.Value + func NewPage(p *rod.Page, vm *goja.Runtime) goja.Value + type Browser struct + func (b *Browser) Page(call goja.FunctionCall, vm *goja.Runtime) goja.Value + type Element struct + func (el *Element) BackgroundImage(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) ContainsElement(element goja.Value) (bool, error) + func (el *Element) Describe(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) ElementByJS(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) ElementR(selector, jsRegex string) (any, error) + func (el *Element) Elements(selector string) (any, error) + func (el *Element) ElementsByJS(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) ElementsX(xpath string) (any, error) + func (el *Element) Equal(elm goja.Value) (bool, error) + func (el *Element) Eval(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) Evaluate(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) Frame(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) Has(selector string) (bool, any, error) + func (el *Element) HasR(selector, jsRegex string) (bool, any, error) + func (el *Element) HasX(selector string) (bool, any, error) + func (el *Element) Interactable(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) NElement(selector string) (any, error) + func (el *Element) Next() any + func (el *Element) Page() any + func (el *Element) Parent() any + func (el *Element) Parents(selector string) any + func (el *Element) Previous() any + func (el *Element) Resource(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) Screenshot(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) ShadowRoot() any + func (el *Element) Shape(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) Wait(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (el *Element) WaitInteractable(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + type Elements []map[string]any + func NewElements(elements rod.Elements) Elements + func (els Elements) Empty() bool + func (els Elements) First() any + func (els Elements) Last() any + type EvalOptions struct + AwaitPromise bool + ByValue bool + JS string + JSArgs []any + ThisObj *proto.RuntimeRemoteObject + UserGesture bool + type Module struct + func (*Module) Exports() any + type Page struct + func (p *Page) Activate() (any, error) + func (p *Page) Cookies(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Element(selector string) (any, error) + func (p *Page) ElementByJS(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) ElementFromNode(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) ElementFromObject(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) ElementFromPoint(x, y int) (any, error) + func (p *Page) ElementR(selector, jsRegex string) (any, error) + func (p *Page) ElementX(xPath string) (any, error) + func (p *Page) Elements(selector string) (Elements, error) + func (p *Page) ElementsByJS(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) ElementsX(xpath string) (Elements, error) + func (p *Page) Emulate(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Eval(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Evaluate(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) GetResource(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) GetWindow(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) HandleDialog(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Has(selector string) (bool, any, error) + func (p *Page) HasR(selector, jsRegex string) (bool, any, error) + func (p *Page) HasX(selector string) (bool, any, error) + func (p *Page) Info(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) ObjectToJSON(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) PDF(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Release(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Screenshot(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Search(query string) (any, error) + func (p *Page) SetCookies(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) SetUserAgent(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) SetViewport(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) SetWindow(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) Timeout(timeout string) (page *Page, err error) + func (p *Page) Wait(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value) + func (p *Page) WaitIdle(timeout string) (err error) + func (p *Page) WaitOpen(_ goja.FunctionCall, vm *goja.Runtime) (ret goja.Value)