Versions in this module Expand all Collapse all v0 v0.1.4 Apr 15, 2026 v0.1.3 Apr 15, 2026 Changes in this version + func FormatStatus(s StatusInfo) string + type PidInfo struct + Headed bool + Pid int + Session string + StartTime time.Time + type StatusInfo struct + BrowserHeaded bool + BrowserRunning bool + DaemonPID int + DaemonPingOK bool + DaemonPingTime string + DaemonRunning bool + DaemonUptime string + Session string + SocketExists bool + SocketPath string + func GetStatus(sessionName string) StatusInfo v0.1.2 Apr 5, 2026 v0.1.1 Apr 2, 2026 v0.1.0 Apr 2, 2026 Changes in this version + func RunDaemon(opts Options) error + type AuthProfile struct + Name string + Password string + PasswordSelector string + SubmitSelector string + URL string + Username string + UsernameSelector string + type AuthVault struct + func NewAuthVault() (*AuthVault, error) + func (v *AuthVault) Delete(name string) error + func (v *AuthVault) Get(name string) (AuthProfile, bool) + func (v *AuthVault) List() []AuthProfile + func (v *AuthVault) Save(p AuthProfile) error + type Client struct + func NewClient(opts Options) *Client + func (c *Client) Back() error + func (c *Client) Check(id int) error + func (c *Client) ClearGeo() error + func (c *Client) Click(id int) error + func (c *Client) ClickNewTab(id int) error + func (c *Client) ClipboardCopy() error + func (c *Client) ClipboardPaste() error + func (c *Client) ClipboardRead() (string, error) + func (c *Client) ClipboardWrite(text string) error + func (c *Client) Close() error + func (c *Client) Confirm(id string) error + func (c *Client) ConsoleClear() error + func (c *Client) ConsoleMessages(level string) ([]browser.ConsoleMessage, error) + func (c *Client) ConsoleStart() error + func (c *Client) CookieDelete(name string) error + func (c *Client) CookieSet(cookie browser.CookieInfo) error + func (c *Client) CookiesClear() error + func (c *Client) CookiesGet() ([]browser.CookieInfo, error) + func (c *Client) DblClick(id int) error + func (c *Client) Deny(id string) error + func (c *Client) DiffScreenshot(baselineFile, outputFile string, threshold float64, fullPage bool) (Response, error) + func (c *Client) DiffSnapshot(baselineFile string, snapOpts browser.SnapshotOptions) (Response, error) + func (c *Client) DiffURL(url1, url2 string, includeScreenshot, fullPage bool, threshold float64, ...) (Response, error) + func (c *Client) Download(id int, saveDir string) (string, error) + func (c *Client) Drag(srcID, dstID int) error + func (c *Client) Eval(expression string) (string, error) + func (c *Client) ExportState(path string) error + func (c *Client) Fill(id int, text string) error + func (c *Client) FindAlt(text string, exact bool) (string, error) + func (c *Client) FindLabel(label string) (string, error) + func (c *Client) FindLabelExact(label string, exact bool) (string, error) + func (c *Client) FindLast(cssSelector string) (string, error) + func (c *Client) FindNth(cssSelector string, n int) (string, error) + func (c *Client) FindPlaceholder(text string, exact bool) (string, error) + func (c *Client) FindRole(role, name string) (string, error) + func (c *Client) FindRoleExact(role, name string, exact bool) (string, error) + func (c *Client) FindTestID(testID string) (string, error) + func (c *Client) FindText(text string) (string, error) + func (c *Client) FindTextExact(text string, exact bool) (string, error) + func (c *Client) FindTitle(text string, exact bool) (string, error) + func (c *Client) Focus(id int) error + func (c *Client) Forward() error + func (c *Client) GetAttr(id int, name string) (string, error) + func (c *Client) GetBox(id int) (*browser.BoxResult, error) + func (c *Client) GetCDPURL() (string, error) + func (c *Client) GetCount(cssSelector string) (int, error) + func (c *Client) GetHTML(id int) (string, error) + func (c *Client) GetStyles(id int) (string, error) + func (c *Client) GetText(id int) (string, error) + func (c *Client) GetTitle() (string, error) + func (c *Client) GetURL() (string, error) + func (c *Client) GetValue(id int) (string, error) + func (c *Client) Highlight(id int) error + func (c *Client) Hover(id int) error + func (c *Client) ImportState(path string) error + func (c *Client) IsChecked(id int) (bool, error) + func (c *Client) IsEnabled(id int) (bool, error) + func (c *Client) IsVisible(id int) (bool, error) + func (c *Client) KeyboardInsertText(text string) error + func (c *Client) KeyboardType(text string) error + func (c *Client) MouseClick(x, y float64, button string) error + func (c *Client) MouseDown(x, y float64, button string) error + func (c *Client) MouseMove(x, y float64) error + func (c *Client) MouseUp(x, y float64, button string) error + func (c *Client) MouseWheel(x, y, deltaX, deltaY float64) error + func (c *Client) NetworkClearRequests() error + func (c *Client) NetworkRequests() ([]browser.NetworkRequest, error) + func (c *Client) NetworkRoute(pattern, action string) error + func (c *Client) NetworkStartLogging() error + func (c *Client) NetworkUnroute(pattern string) error + func (c *Client) Open(url string) error + func (c *Client) OpenDevTools() error + func (c *Client) PDF(path string, args PDFArgs) error + func (c *Client) PageErrors() ([]browser.PageError, error) + func (c *Client) PageErrorsClear() error + func (c *Client) Press(key string) error + func (c *Client) ProfilerStart() error + func (c *Client) ProfilerStop(outputFile string) error + func (c *Client) RecordStart(outputPath string) error + func (c *Client) RecordStop() (int, error) + func (c *Client) Reload() error + func (c *Client) Screenshot(path string, args ScreenshotArgs) error + func (c *Client) ScreenshotAnnotated(path string, args ScreenshotArgs) error + func (c *Client) Scroll(direction string, amount int) error + func (c *Client) ScrollIntoView(id int) error + func (c *Client) Select(id int, values ...string) error + func (c *Client) SessionInfo() (string, error) + func (c *Client) SetColorScheme(scheme string) error + func (c *Client) SetCredentials(user, pass string) error + func (c *Client) SetDevice(name string) error + func (c *Client) SetGeo(lat, lon float64) error + func (c *Client) SetHeaders(headers map[string]string) error + func (c *Client) SetMedia(features []browser.MediaFeature) error + func (c *Client) SetOffline(offline bool) error + func (c *Client) SetViewport(width, height int) error + func (c *Client) SetViewportWithScale(width, height int, scale float64) error + func (c *Client) Snapshot(opts browser.SnapshotOptions) (Response, error) + func (c *Client) StorageClear(storageType string) error + func (c *Client) StorageDelete(storageType, key string) error + func (c *Client) StorageGet(storageType, key string) (string, error) + func (c *Client) StorageGetAll(storageType string) (map[string]string, error) + func (c *Client) StorageSet(storageType, key, value string) error + func (c *Client) TabClose(index int) error + func (c *Client) TabList() ([]browser.TabInfo, error) + func (c *Client) TabNew(url string) error + func (c *Client) TabSwitch(index int) error + func (c *Client) TraceStart(categories string) error + func (c *Client) TraceStop(outputFile string) error + func (c *Client) Type(id int, text string) error + func (c *Client) Uncheck(id int) error + func (c *Client) Upload(id int, files ...string) error + func (c *Client) Wait(d time.Duration) error + func (c *Client) WaitDownload(saveDir string) (string, error) + func (c *Client) WaitFunc(expression string) error + func (c *Client) WaitHidden(cssSelector string) error + func (c *Client) WaitLoad() error + func (c *Client) WaitSelector(cssSelector string) error + func (c *Client) WaitText(text string) error + func (c *Client) WaitURL(pattern string) error + type ConfirmStore struct + func NewConfirmStore(categories []string, timeout time.Duration) *ConfirmStore + func (cs *ConfirmStore) Add(command, argsDesc string) *PendingAction + func (cs *ConfirmStore) Confirm(id string) error + func (cs *ConfirmStore) Deny(id string) error + func (cs *ConfirmStore) NeedsConfirmation(command string) bool + type Options struct + AllowFileAccess bool + ConfirmActions []string + Debug bool + DownloadPath string + Extensions []string + ExtraArgs []string + Headed bool + IgnoreHTTPSErrors bool + Name string + Profile string + Proxy string + ProxyBypass string + ScreenshotDir string + ScreenshotFormat string + StatePath string + Timeout time.Duration + UserAgent string + type PDFArgs struct + Landscape bool + PrintBG bool + type PendingAction struct + Args string + Command string + CreatedAt time.Time + ID string + func (pa *PendingAction) Wait() bool + type Request struct + Amount int + AttrName string + BaselineFile string + CSSSelector string + Categories string + ClipboardText string + ColorScheme string + Command string + ConfirmID string + ConsoleLevel string + Cookie browser.CookieInfo + Cursor bool + DeltaX float64 + DeltaY float64 + DeviceName string + Direction string + DstID int + Exact bool + Expression string + FilePath string + Files []string + Headers map[string]string + Height int + ID int + IncludeScreenshot bool + Key string + Lat float64 + Lon float64 + MediaFeatures []browser.MediaFeature + MouseBtn string + N int + NewTab bool + Offline *bool + OutputFile string + PDFArgs PDFArgs + Pass string + Pattern string + Role string + RouteAction string + SaveDir string + Scale float64 + ScreenshotArgs ScreenshotArgs + SnapshotOptions browser.SnapshotOptions + StatePath string + StorageKey string + StorageType string + StorageVal string + TabIndex int + Target string + Text string + Threshold float64 + URL string + URL2 string + User string + Values []string + WaitDuration time.Duration + Width int + X float64 + Y float64 + type Response struct + BoolResult *bool + Box *browser.BoxResult + ConfirmID string + ConfirmationRequired bool + ConsoleMessages []browser.ConsoleMessage + Cookies []browser.CookieInfo + DiffResult *browser.DiffSnapshotResult + DiffURLResult *browser.DiffURLResult + ElementCount int + Error string + FilePath string + IntResult int + OK bool + PageErrors []browser.PageError + RawCount int + Requests []browser.NetworkRequest + ScreenshotDiff *browser.DiffScreenshotResult + StorageItems map[string]string + Tabs []browser.TabInfo + Text string + type ScreenshotArgs struct + Annotate bool + ElementID int + FullPage bool + Quality int + type SessionEntry struct + Name string + Socket string + func ListSessions() ([]SessionEntry, error)