Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + type Config struct + DevToolsURL string + TargetURL string + Timeout time.Duration + TypingDelay time.Duration + type MarkedElement struct + Height int + ID string + Name string + Role string + Width int + X int + Y int + type Surface struct + func Connect(ctx context.Context, config Config) (*Surface, error) + func (surface *Surface) Capture(ctx context.Context) ([]byte, error) + func (surface *Surface) CaptureMarked(ctx context.Context) ([]byte, []MarkedElement, error) + func (surface *Surface) Click(ctx context.Context, x, y int, button string) error + func (surface *Surface) ClickElement(ctx context.Context, elementID string) error + func (surface *Surface) Close() error + func (surface *Surface) DoubleClick(ctx context.Context, x, y int) error + func (surface *Surface) Drag(ctx context.Context, fromX, fromY, toX, toY int) error + func (surface *Surface) Evaluate(ctx context.Context, expression string, destination any) error + func (surface *Surface) Key(ctx context.Context, keys []string) error + func (surface *Surface) Location(ctx context.Context) (string, error) + func (surface *Surface) Move(ctx context.Context, x, y int) error + func (surface *Surface) Name() string + func (surface *Surface) Navigate(ctx context.Context, url string) error + func (surface *Surface) Screenshot(ctx context.Context) error + func (surface *Surface) Scroll(ctx context.Context, x, y, deltaX, deltaY int) error + func (surface *Surface) Type(ctx context.Context, text string) error + func (surface *Surface) Viewport(ctx context.Context) (width, height int, err error)