chrometest

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package chrometest provides a shared chrome.Browser test double. Both the cli and daemon test suites embed StubBrowser and override only the methods they assert on, so a new Browser method needs a default in exactly one place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubBrowser

type StubBrowser struct{}

StubBrowser implements chrome.Browser with permissive defaults so tests override only what they assert on; a new interface method gets a default here.

func (StubBrowser) AttrGet

func (StubBrowser) AttrList

func (StubBrowser) AttrRemove

func (StubBrowser) AttrSet

func (StubBrowser) Click

func (StubBrowser) Close

func (StubBrowser) Close() error

func (StubBrowser) CookieClear

func (StubBrowser) CookieClear(context.Context, string) (map[string]any, error)

func (StubBrowser) CookieDelete

func (StubBrowser) CookieDelete(context.Context, string, string) (map[string]any, error)

func (StubBrowser) CookieList

func (StubBrowser) CookieList(context.Context, string) (any, error)

func (StubBrowser) CookieSet

func (StubBrowser) EmulateGeo

func (StubBrowser) EmulateReset

func (StubBrowser) EmulateReset(context.Context, string) (map[string]any, error)

func (StubBrowser) EmulateViewport

func (StubBrowser) EmulateViewport(context.Context, string, int64, int64) (map[string]any, error)

func (StubBrowser) Eval

func (StubBrowser) Fill

func (StubBrowser) Frames

func (StubBrowser) Frames(context.Context, string) (any, error)

func (StubBrowser) Grid

func (StubBrowser) HTML

func (StubBrowser) List

func (StubBrowser) Navigate

func (StubBrowser) Navigate(context.Context, string, string) (map[string]any, error)

func (StubBrowser) Open

func (StubBrowser) Open(_ context.Context, url string) (map[string]any, error)

func (StubBrowser) PDF

func (StubBrowser) Raw

func (StubBrowser) Screenshot

func (StubBrowser) Screenshot(context.Context, string) ([]byte, error)

func (StubBrowser) Scroll

func (StubBrowser) Select

func (StubBrowser) SetHeaders

func (StubBrowser) SetHeaders(context.Context, string, map[string]string) (map[string]any, error)

func (StubBrowser) Snapshot

func (StubBrowser) Text

func (StubBrowser) Type

func (StubBrowser) Value

func (StubBrowser) Values

func (StubBrowser) Wait

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL