Versions in this module Expand all Collapse all v0 v0.3.8 Apr 27, 2026 v0.3.7 Apr 22, 2026 v0.3.6 Apr 20, 2026 v0.3.5 Apr 20, 2026 v0.3.4 Apr 20, 2026 v0.3.3 Apr 20, 2026 v0.3.2 Apr 20, 2026 v0.3.1 Apr 20, 2026 v0.3.0 Apr 15, 2026 v0.2.1 Apr 15, 2026 v0.2.0 Apr 15, 2026 v0.1.0 Apr 15, 2026 Changes in this version + type AXNode struct + AXNodeID string + BackendNodeID int64 + ChildRefs []string + Description string + Name string + Ref string + Role string + Value string + type AXVal struct + Type string + Value json.RawMessage + type Client struct + func Dial(ctx context.Context, wsURL string) (*Client, error) + func (c *Client) Call(ctx context.Context, method string, params any, sessionID string) (json.RawMessage, error) + func (c *Client) Close() error + func (c *Client) WaitEvent(ctx context.Context, method string, match func(json.RawMessage) bool) (json.RawMessage, error) + type Message struct + Error *RPCError + ID int + Method string + Params json.RawMessage + Result json.RawMessage + SessionID string + type RPCError struct + Code int + Data string + Message string + func (e *RPCError) Error() string + type Selector struct + Query string + Type string + func CSSSelector(q string) Selector + func XPathSelector(q string) Selector + type Session struct + Client *Client + RefTable map[string]int64 + SessionID string + TargetID string + func Attach(ctx context.Context, c *Client) (*Session, error) + func (s *Session) BackendIDForRef(ref string) (int64, bool) + func (s *Session) Call(ctx context.Context, method string, params any) (json.RawMessage, error) + func (s *Session) Click(ctx context.Context, locator string) (map[string]any, error) + func (s *Session) ClickAndSlide(ctx context.Context, source Selector, opts SlideOptions) (map[string]any, error) + func (s *Session) ClickAntibot(ctx context.Context, sel Selector, button string, clickCount int) (map[string]any, error) + func (s *Session) Detach(ctx context.Context) error + func (s *Session) Eval(ctx context.Context, js string) (any, error) + func (s *Session) Fill(ctx context.Context, locator, text string) (map[string]any, error) + func (s *Session) FillAntibot(ctx context.Context, sel Selector, text string, clear bool, wpm float64) (map[string]any, error) + func (s *Session) Open(ctx context.Context, url string) (map[string]any, error) + func (s *Session) RenderedContent(ctx context.Context, renderIframes bool) (content, contentType string, err error) + func (s *Session) Screenshot(ctx context.Context, fullPage bool) ([]byte, error) + func (s *Session) Scroll(ctx context.Context, direction string, amount float64, locator string) (map[string]any, error) + func (s *Session) Snapshot(ctx context.Context) ([]AXNode, error) + func (s *Session) WaitForElement(ctx context.Context, sel Selector, timeoutMs int, visible bool) (map[string]any, error) + type SlideOptions struct + Button string + Distance float64 + Overshoot bool + Target *Selector + VerticalOffset float64