Versions in this module Expand all Collapse all v0 v0.8.0 Mar 30, 2026 Changes in this version + type AssertOptions struct + Selector string + Timeout time.Duration + type AssertionError struct + Actual string + Expected string + Message string + Selector string + Type string + func (e *AssertionError) Error() string type ClickerProcess + func (p *ClickerProcess) Process() *os.Process type Element + func (e *Element) VerifyChecked(ctx context.Context) error + func (e *Element) VerifyDisabled(ctx context.Context) error + func (e *Element) VerifyEnabled(ctx context.Context) error + func (e *Element) VerifyHidden(ctx context.Context) error + func (e *Element) VerifyText(ctx context.Context, expected string, opts *VerifyTextOptions) error + func (e *Element) VerifyUnchecked(ctx context.Context) error + func (e *Element) VerifyValue(ctx context.Context, expected string) error + func (e *Element) VerifyVisible(ctx context.Context) error + type GenerateLocatorOptions struct + Strategy string + Timeout time.Duration + type LocatorInfo struct + Locator string + Metadata map[string]string + Strategy string type Pilot + func Connect(ctx context.Context, wsURL string) (*Pilot, error) + func (p *Pilot) AssertElement(ctx context.Context, selector string, opts *AssertOptions) error + func (p *Pilot) AssertText(ctx context.Context, text string, opts *AssertOptions) error + func (p *Pilot) AssertURL(ctx context.Context, pattern string, _ *AssertOptions) error + func (p *Pilot) Clicker() *ClickerProcess + func (p *Pilot) GenerateLocator(ctx context.Context, selector string, opts *GenerateLocatorOptions) (*LocatorInfo, error) + type VerificationError struct + Actual string + Expected string + Message string + Selector string + Type string + func (e *VerificationError) Error() string + type VerifyTextOptions struct + Exact bool v0.7.0 Mar 29, 2026 Changes in this version + func IsUnsupportedCommand(err error) bool v0.6.0 Mar 29, 2026 Changes in this version + const ClickerBinaryEnvVar + const DefaultTimeout + const VibiumBinaryEnvVar + var Browser = &browserLauncher + var ErrBrowserCrashed = errors.New("browser crashed") + var ErrBrowserNotFound = errors.New("Chrome not found") + var ErrClickerNotFound = ErrBrowserNotFound + var ErrConnectionClosed = errors.New("connection closed") + var ErrConnectionFailed = errors.New("failed to connect to browser") + var ErrElementNotFound = errors.New("element not found") + var ErrTimeout = errors.New("operation timed out") + func ClickerVersion(clickerPath string) (string, error) + func ContextWithLogger(ctx context.Context, logger *slog.Logger) context.Context + func Debug() bool + func FindClickerBinary() (string, error) + func LoggerFromContext(ctx context.Context) *slog.Logger + func NewDebugLogger() *slog.Logger + type A11yTreeOptions struct + InterestingOnly *bool + Root string + type ActionOptions struct + Timeout time.Duration + type BiDiClient struct + func NewBiDiClient(transport BiDiTransport) *BiDiClient + func (c *BiDiClient) Close() error + func (c *BiDiClient) OnEvent(method string, handler EventHandler) + func (c *BiDiClient) RemoveEventHandlers(method string) + func (c *BiDiClient) Send(ctx context.Context, method string, params interface{}) (json.RawMessage, error) + type BiDiCommand struct + ID int64 + Method string + Params interface{} + type BiDiError struct + ErrorType string + Message string + func (e *BiDiError) Error() string + type BiDiEvent struct + Method string + Params json.RawMessage + type BiDiResponse struct + Error string + ID int64 + Message string + Method string + Params json.RawMessage + Result json.RawMessage + Type string + type BiDiTransport interface + Close func() error + OnEvent func(method string, handler EventHandler) + RemoveEventHandlers func(method string) + Send func(ctx context.Context, method string, params interface{}) (json.RawMessage, error) + type BoundingBox struct + Height float64 + Width float64 + X float64 + Y float64 + type BrowserContext struct + func (c *BrowserContext) AddInitScript(ctx context.Context, script string) error + func (c *BrowserContext) ClearCookies(ctx context.Context) error + func (c *BrowserContext) ClearPermissions(ctx context.Context) error + func (c *BrowserContext) Close(ctx context.Context) error + func (c *BrowserContext) Cookies(ctx context.Context, urls ...string) ([]Cookie, error) + func (c *BrowserContext) DeleteCookie(ctx context.Context, name string, domain string, path string) error + func (c *BrowserContext) GrantPermissions(ctx context.Context, permissions []string, origin string) error + func (c *BrowserContext) NewPage(ctx context.Context) (*Pilot, error) + func (c *BrowserContext) SetCookies(ctx context.Context, cookies []SetCookieParam) error + func (c *BrowserContext) StorageState(ctx context.Context) (*StorageState, error) + func (c *BrowserContext) Tracing() *Tracing + type BrowserCrashedError struct + ExitCode int + Output string + func (e *BrowserCrashedError) Error() string + type ClickOptions struct + Button MouseButton + ClickCount int + Delay int + type ClickerProcess struct + func StartClicker(ctx context.Context, opts LaunchOptions) (*ClickerProcess, error) + func (p *ClickerProcess) Port() int + func (p *ClickerProcess) Stop() error + func (p *ClickerProcess) Wait() error + func (p *ClickerProcess) WebSocketURL() string + type Clock struct + func NewClock(client *BiDiClient, browsingContext string) *Clock + func (c *Clock) FastForward(ctx context.Context, ticks int64) error + func (c *Clock) Install(ctx context.Context, opts *ClockInstallOptions) error + func (c *Clock) PauseAt(ctx context.Context, t interface{}) error + func (c *Clock) Resume(ctx context.Context) error + func (c *Clock) RunFor(ctx context.Context, ticks int64) error + func (c *Clock) SetFixedTime(ctx context.Context, t interface{}) error + func (c *Clock) SetSystemTime(ctx context.Context, t interface{}) error + func (c *Clock) SetTimezone(ctx context.Context, tz string) error + type ClockInstallOptions struct + Time interface{} + type ConnectionError struct + Cause error + URL string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type ConsoleEntry = cdp.ConsoleEntry + type ConsoleHandler func(*ConsoleMessage) + type ConsoleMessage struct + Args []string + Line int + Text string + Type string + URL string + type ContinueOptions struct + Headers map[string]string + Method string + PostData string + URL string + type Cookie struct + Domain string + Expires float64 + HTTPOnly bool + Name string + PartitionKey string + Path string + SameSite string + Secure bool + Value string + type CoverageReport = cdp.CoverageReport + type CoverageSummary = cdp.CoverageSummary + type Dialog struct + Default string + Message string + Type string + func (d *Dialog) Accept(ctx context.Context, promptText string) error + func (d *Dialog) Dismiss(ctx context.Context) error + type DialogHandler func(*Dialog) + type DialogInfo struct + DefaultValue string + HasDialog bool + Message string + Type string + type Download struct + Name string + URL string + func (d *Download) Cancel(ctx context.Context) error + func (d *Download) Failure(ctx context.Context) (string, error) + func (d *Download) Path(ctx context.Context) (string, error) + func (d *Download) SaveAs(ctx context.Context, path string) error + type DownloadHandler func(*Download) + type Element struct + func NewElement(client *BiDiClient, browsingContext, selector string, info ElementInfo) *Element + func (e *Element) BoundingBox(ctx context.Context) (BoundingBox, error) + func (e *Element) Center() (x, y float64) + func (e *Element) Check(ctx context.Context, opts *ActionOptions) error + func (e *Element) Clear(ctx context.Context, opts *ActionOptions) error + func (e *Element) Click(ctx context.Context, opts *ActionOptions) error + func (e *Element) DblClick(ctx context.Context, opts *ActionOptions) error + func (e *Element) DispatchEvent(ctx context.Context, eventType string, eventInit map[string]interface{}) error + func (e *Element) DragTo(ctx context.Context, target *Element, opts *ActionOptions) error + func (e *Element) Eval(ctx context.Context, fn string, args ...interface{}) (interface{}, error) + func (e *Element) Fill(ctx context.Context, value string, opts *ActionOptions) error + func (e *Element) Find(ctx context.Context, selector string, opts *FindOptions) (*Element, error) + func (e *Element) FindAll(ctx context.Context, selector string, opts *FindOptions) ([]*Element, error) + func (e *Element) Focus(ctx context.Context, opts *ActionOptions) error + func (e *Element) GetAttribute(ctx context.Context, name string) (string, error) + func (e *Element) HTML(ctx context.Context) (string, error) + func (e *Element) Highlight(ctx context.Context, opts *HighlightOptions) error + func (e *Element) Hover(ctx context.Context, opts *ActionOptions) error + func (e *Element) Info() ElementInfo + func (e *Element) InnerHTML(ctx context.Context) (string, error) + func (e *Element) InnerText(ctx context.Context) (string, error) + func (e *Element) IsChecked(ctx context.Context) (bool, error) + func (e *Element) IsEditable(ctx context.Context) (bool, error) + func (e *Element) IsEnabled(ctx context.Context) (bool, error) + func (e *Element) IsHidden(ctx context.Context) (bool, error) + func (e *Element) IsVisible(ctx context.Context) (bool, error) + func (e *Element) Label(ctx context.Context) (string, error) + func (e *Element) Press(ctx context.Context, key string, opts *ActionOptions) error + func (e *Element) Role(ctx context.Context) (string, error) + func (e *Element) Screenshot(ctx context.Context) ([]byte, error) + func (e *Element) ScrollIntoView(ctx context.Context, opts *ActionOptions) error + func (e *Element) SelectOption(ctx context.Context, values SelectOptionValues, opts *ActionOptions) error + func (e *Element) Selector() string + func (e *Element) SetFiles(ctx context.Context, paths []string, opts *ActionOptions) error + func (e *Element) Tap(ctx context.Context, opts *ActionOptions) error + func (e *Element) Text(ctx context.Context) (string, error) + func (e *Element) Type(ctx context.Context, text string, opts *ActionOptions) error + func (e *Element) Uncheck(ctx context.Context, opts *ActionOptions) error + func (e *Element) Value(ctx context.Context) (string, error) + func (e *Element) WaitFor(ctx context.Context, timeout time.Duration) error + func (e *Element) WaitUntil(ctx context.Context, state string, timeout time.Duration) error + type ElementInfo struct + Box BoundingBox + Tag string + Text string + type ElementNotFoundError struct + PageContext *PageContext + Selector string + Suggestions []string + func (e *ElementNotFoundError) Error() string + type EmulateMediaOptions struct + ColorScheme string + Contrast string + ForcedColors string + Media string + ReducedMotion string + type EventHandler func(event *BiDiEvent) + type ExceptionDetails = cdp.ExceptionDetails + type ExtensionInfo = cdp.ExtensionInfo + type ExtractTableOptions struct + CellSelector string + HeaderSelector string + IncludeHeaders bool + MaxRows int + RowSelector string + type FindOptions struct + Alt string + Label string + Near string + Placeholder string + Role string + TestID string + Text string + Timeout time.Duration + Title string + XPath string + type FrameInfo struct + Name string + URL string + type FulfillOptions struct + Body []byte + ContentType string + Headers map[string]string + Path string + Status int + type Geolocation struct + Accuracy float64 + Latitude float64 + Longitude float64 + type HighlightOptions struct + Color string + Duration int + type InspectButton struct + Disabled bool + Selector string + Text string + Type string + Visible bool + type InspectHeading struct + Level int + Selector string + Text string + Visible bool + type InspectImage struct + Alt string + Selector string + Src string + Visible bool + type InspectInput struct + Disabled bool + Label string + Name string + Placeholder string + ReadOnly bool + Required bool + Selector string + Type string + Value string + Visible bool + type InspectLink struct + Href string + Selector string + Text string + Visible bool + type InspectOptions struct + IncludeButtons bool + IncludeHeadings bool + IncludeImages bool + IncludeInputs bool + IncludeLinks bool + IncludeSelects bool + MaxItems int + func DefaultInspectOptions() *InspectOptions + type InspectResult struct + Buttons []InspectButton + Headings []InspectHeading + Images []InspectImage + Inputs []InspectInput + Links []InspectLink + Selects []InspectSelect + Summary InspectSummary + Title string + URL string + type InspectSelect struct + Disabled bool + Label string + Multiple bool + Name string + Options []string + Selected string + Selector string + Visible bool + type InspectSummary struct + TotalButtons int + TotalHeadings int + TotalImages int + TotalInputs int + TotalLinks int + TotalSelects int + type Keyboard struct + func NewKeyboard(client *BiDiClient, browsingContext string) *Keyboard + func (k *Keyboard) Down(ctx context.Context, key string) error + func (k *Keyboard) InsertText(ctx context.Context, text string) error + func (k *Keyboard) Press(ctx context.Context, key string) error + func (k *Keyboard) Type(ctx context.Context, text string) error + func (k *Keyboard) Up(ctx context.Context, key string) error + type LaunchOptions struct + Args []string + AutoInstall *bool + ExecutablePath string + Headless bool + Port int + UseWebSocket bool + UserDataDir string + type LighthouseCategory string + const LighthouseAccessibility + const LighthouseBestPractices + const LighthousePerformance + const LighthouseSEO + type LighthouseDevice string + const LighthouseDesktop + const LighthouseMobile + type LighthouseOptions struct + Categories []LighthouseCategory + Device LighthouseDevice + OutputDir string + Port int + type LighthouseResult struct + Device string + FailedAudits int + HTMLReportPath string + JSONReportPath string + PassedAudits int + Scores map[string]LighthouseScore + TotalDurationMS float64 + URL string + type LighthouseScore struct + Score float64 + Title string + type LogEntry = cdp.LogEntry + type LoginOptions struct + Password string + PasswordSelector string + SubmitSelector string + SuccessIndicator string + Timeout time.Duration + Username string + UsernameSelector string + type LoginResult struct + ErrorReason string + Message string + Success bool + Title string + URL string + type MemoryStats struct + JSHeapSizeLimit int64 + TotalJSHeapSize int64 + UsedJSHeapSize int64 + type MockRouteOptions struct + Body string + ContentType string + Headers map[string]string + Status int + type Mouse struct + func NewMouse(client *BiDiClient, browsingContext string) *Mouse + func (m *Mouse) Click(ctx context.Context, x, y float64, opts *ClickOptions) error + func (m *Mouse) DblClick(ctx context.Context, x, y float64, opts *ClickOptions) error + func (m *Mouse) Down(ctx context.Context, button MouseButton) error + func (m *Mouse) Move(ctx context.Context, x, y float64) error + func (m *Mouse) Up(ctx context.Context, button MouseButton) error + func (m *Mouse) Wheel(ctx context.Context, deltaX, deltaY float64) error + type MouseButton string + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonRight + type NetworkRequest struct + Headers map[string]string + Method string + PostData string + ResourceType string + ResponseSize int64 + Status int + StatusText string + Timestamp int64 + URL string + type NetworkRequestsOptions struct + Method string + ResourceType string + URLPattern string + type PDFMargin struct + Bottom string + Left string + Right string + Top string + type PDFOptions struct + DisplayFooter bool + DisplayHeader bool + Format string + Height string + Landscape bool + Margin *PDFMargin + PageRanges string + Path string + PrintBackground bool + Scale float64 + Width string + type PageContext struct + Title string + URL string + VisibleText string + type PageError struct + Column int + Line int + Message string + Stack string + URL string + type PageErrorHandler func(*PageError) + type PageHandler func(*Pilot) + type PerformanceMetrics struct + CLS float64 + DOMContentLoaded float64 + DOMInteractive float64 + FCP float64 + FID float64 + INP float64 + LCP float64 + Load float64 + ResourceCount int + TTFB float64 + type Pilot struct + func Launch(ctx context.Context) (*Pilot, error) + func LaunchHeadless(ctx context.Context) (*Pilot, error) + func (p *Pilot) A11yTree(ctx context.Context, opts *A11yTreeOptions) (interface{}, error) + func (p *Pilot) AddInitScript(ctx context.Context, script string) error + func (p *Pilot) AddScript(ctx context.Context, source string) error + func (p *Pilot) AddStyle(ctx context.Context, source string) error + func (p *Pilot) Back(ctx context.Context) error + func (p *Pilot) BringToFront(ctx context.Context) error + func (p *Pilot) BrowserLogs() []LogEntry + func (p *Pilot) BrowserVersion(ctx context.Context) (string, error) + func (p *Pilot) BrowsingContext() string + func (p *Pilot) CDP() *cdp.Client + func (p *Pilot) CDPPort() int + func (p *Pilot) ClearCPUEmulation(ctx context.Context) error + func (p *Pilot) ClearConsoleDebugger() + func (p *Pilot) ClearConsoleMessages(ctx context.Context) error + func (p *Pilot) ClearErrors(ctx context.Context) error + func (p *Pilot) ClearNetworkEmulation(ctx context.Context) error + func (p *Pilot) ClearNetworkRequests(ctx context.Context) error + func (p *Pilot) ClearStorage(ctx context.Context) error + func (p *Pilot) Clock(ctx context.Context) (*Clock, error) + func (p *Pilot) Close(ctx context.Context) error + func (p *Pilot) CollectConsole(ctx context.Context) error + func (p *Pilot) CollectErrors(ctx context.Context) error + func (p *Pilot) ConsoleEntries() []ConsoleEntry + func (p *Pilot) ConsoleExceptions() []ExceptionDetails + func (p *Pilot) ConsoleMessages(ctx context.Context, level string) ([]ConsoleMessage, error) + func (p *Pilot) Content(ctx context.Context) (string, error) + func (p *Pilot) Context() *BrowserContext + func (p *Pilot) DisableConsoleDebugger(ctx context.Context) error + func (p *Pilot) EmulateCPU(ctx context.Context, rate int) error + func (p *Pilot) EmulateMedia(ctx context.Context, opts EmulateMediaOptions) error + func (p *Pilot) EmulateNetwork(ctx context.Context, conditions cdp.NetworkConditions) error + func (p *Pilot) EnableConsoleDebugger(ctx context.Context) error + func (p *Pilot) Errors(ctx context.Context) ([]PageError, error) + func (p *Pilot) Evaluate(ctx context.Context, script string) (interface{}, error) + func (p *Pilot) Expose(ctx context.Context, name string) error + func (p *Pilot) ExtractTable(ctx context.Context, selector string, opts *ExtractTableOptions) (*TableResult, error) + func (p *Pilot) Find(ctx context.Context, selector string, opts *FindOptions) (*Element, error) + func (p *Pilot) FindAll(ctx context.Context, selector string, opts *FindOptions) ([]*Element, error) + func (p *Pilot) Forward(ctx context.Context) error + func (p *Pilot) Frame(ctx context.Context, nameOrURL string) (*Pilot, error) + func (p *Pilot) Frames(ctx context.Context) ([]FrameInfo, error) + func (p *Pilot) GetDialog(ctx context.Context) (DialogInfo, error) + func (p *Pilot) GetMemoryStats(ctx context.Context) (*MemoryStats, error) + func (p *Pilot) GetNetworkResponseBody(ctx context.Context, requestID string, saveTo string) (*cdp.ResponseBody, error) + func (p *Pilot) GetPerformanceMetrics(ctx context.Context) (*PerformanceMetrics, error) + func (p *Pilot) GetViewport(ctx context.Context) (Viewport, error) + func (p *Pilot) GetWindow(ctx context.Context) (WindowState, error) + func (p *Pilot) Go(ctx context.Context, url string) error + func (p *Pilot) HandleDialog(ctx context.Context, accept bool, promptText string) error + func (p *Pilot) HasCDP() bool + func (p *Pilot) Inspect(ctx context.Context, opts *InspectOptions) (*InspectResult, error) + func (p *Pilot) InstallExtension(ctx context.Context, path string) (string, error) + func (p *Pilot) IsClosed() bool + func (p *Pilot) IsConsoleDebuggerEnabled() bool + func (p *Pilot) IsCoverageRunning() bool + func (p *Pilot) IsScreencasting() bool + func (p *Pilot) Keyboard(ctx context.Context) (*Keyboard, error) + func (p *Pilot) LighthouseAudit(ctx context.Context, opts *LighthouseOptions) (*LighthouseResult, error) + func (p *Pilot) ListExtensions(ctx context.Context) ([]ExtensionInfo, error) + func (p *Pilot) ListRoutes(ctx context.Context) ([]RouteInfo, error) + func (p *Pilot) Login(ctx context.Context, opts *LoginOptions) (*LoginResult, error) + func (p *Pilot) MainFrame() *Pilot + func (p *Pilot) MockRoute(ctx context.Context, pattern string, opts MockRouteOptions) error + func (p *Pilot) Mouse(ctx context.Context) (*Mouse, error) + func (p *Pilot) MustFind(ctx context.Context, selector string) *Element + func (p *Pilot) NetworkRequests(ctx context.Context, opts *NetworkRequestsOptions) ([]NetworkRequest, error) + func (p *Pilot) NewContext(ctx context.Context) (*BrowserContext, error) + func (p *Pilot) NewPage(ctx context.Context) (*Pilot, error) + func (p *Pilot) ObserveWebVitals(ctx context.Context) (<-chan *PerformanceMetrics, func(), error) + func (p *Pilot) OnConsole(ctx context.Context, handler ConsoleHandler) error + func (p *Pilot) OnDialog(ctx context.Context, handler DialogHandler) error + func (p *Pilot) OnDownload(ctx context.Context, handler DownloadHandler) error + func (p *Pilot) OnError(ctx context.Context, handler PageErrorHandler) error + func (p *Pilot) OnPage(ctx context.Context, handler PageHandler) error + func (p *Pilot) OnPopup(ctx context.Context, handler PopupHandler) error + func (p *Pilot) OnRequest(ctx context.Context, handler RequestHandler) error + func (p *Pilot) OnResponse(ctx context.Context, handler ResponseHandler) error + func (p *Pilot) OnWebSocket(ctx context.Context, handler WebSocketHandler) error + func (p *Pilot) PDF(ctx context.Context, opts *PDFOptions) ([]byte, error) + func (p *Pilot) Pages(ctx context.Context) ([]*Pilot, error) + func (p *Pilot) Quit(ctx context.Context) error + func (p *Pilot) Reload(ctx context.Context) error + func (p *Pilot) RemoveAllListeners() + func (p *Pilot) Route(ctx context.Context, pattern string, handler RouteHandler) error + func (p *Pilot) Screenshot(ctx context.Context) ([]byte, error) + func (p *Pilot) Scroll(ctx context.Context, direction string, amount int, opts *ScrollOptions) error + func (p *Pilot) SetContent(ctx context.Context, html string) error + func (p *Pilot) SetExtraHTTPHeaders(ctx context.Context, headers map[string]string) error + func (p *Pilot) SetGeolocation(ctx context.Context, coords Geolocation) error + func (p *Pilot) SetOffline(ctx context.Context, offline bool) error + func (p *Pilot) SetStorageState(ctx context.Context, state *StorageState) error + func (p *Pilot) SetViewport(ctx context.Context, viewport Viewport) error + func (p *Pilot) SetWindow(ctx context.Context, opts SetWindowOptions) error + func (p *Pilot) StartCSSCoverage(ctx context.Context) error + func (p *Pilot) StartCoverage(ctx context.Context) error + func (p *Pilot) StartJSCoverage(ctx context.Context, callCount, detailed bool) error + func (p *Pilot) StartScreencast(ctx context.Context, opts *cdp.ScreencastOptions, ...) error + func (p *Pilot) StartVideo(ctx context.Context, opts *VideoOptions) (*Video, error) + func (p *Pilot) StopCoverage(ctx context.Context) (*CoverageReport, error) + func (p *Pilot) StopScreencast(ctx context.Context) error + func (p *Pilot) StopVideo(ctx context.Context) (string, error) + func (p *Pilot) StorageState(ctx context.Context) (*StorageState, error) + func (p *Pilot) TakeHeapSnapshot(ctx context.Context, path string) (*cdp.HeapSnapshot, error) + func (p *Pilot) Title(ctx context.Context) (string, error) + func (p *Pilot) Touch(ctx context.Context) (*Touch, error) + func (p *Pilot) Tracing() *Tracing + func (p *Pilot) URL(ctx context.Context) (string, error) + func (p *Pilot) UninstallExtension(ctx context.Context, id string) error + func (p *Pilot) Unroute(ctx context.Context, pattern string) error + func (p *Pilot) ValidateSelector(ctx context.Context, selector string) (*SelectorValidation, error) + func (p *Pilot) ValidateSelectors(ctx context.Context, selectors []string) ([]SelectorValidation, error) + func (p *Pilot) WaitForFunction(ctx context.Context, fn string, timeout time.Duration) error + func (p *Pilot) WaitForLoad(ctx context.Context, state string, timeout time.Duration) error + func (p *Pilot) WaitForNavigation(ctx context.Context, timeout time.Duration) error + func (p *Pilot) WaitForURL(ctx context.Context, pattern string, timeout time.Duration) error + type PipeOptions struct + ExecutablePath string + Headless bool + StartupTimeout time.Duration + type PopupHandler func(*Pilot) + type Request struct + Headers map[string]string + IsNavigationRequest bool + Method string + PostData string + ResourceType string + URL string + type RequestHandler func(*Request) + type Response struct + Body []byte + Headers map[string]string + Status int + StatusText string + URL string + type ResponseHandler func(*Response) + type Route struct + Request *Request + func (r *Route) Abort(ctx context.Context) error + func (r *Route) Continue(ctx context.Context, opts *ContinueOptions) error + func (r *Route) Fulfill(ctx context.Context, opts FulfillOptions) error + type RouteHandler func(ctx context.Context, route *Route) error + type RouteInfo struct + ContentType string + Pattern string + Status int + type ScreencastFrameHandler func(frame *cdp.ScreencastFrame) + type ScrollOptions struct + Selector string + type SelectOptionValues struct + Indexes []int + Labels []string + Values []string + type SelectorValidation struct + Count int + Enabled bool + Found bool + Selector string + Suggestions []string + TagName string + Visible bool + type SetCookieParam struct + Domain string + Expires float64 + HTTPOnly bool + Name string + PartitionKey string + Path string + SameSite string + Secure bool + URL string + Value string + type SetWindowOptions struct + Height *int + State string + Width *int + X *int + Y *int + type StorageState struct + Cookies []Cookie + Origins []StorageStateOrigin + type StorageStateOrigin struct + LocalStorage map[string]string + Origin string + SessionStorage map[string]string + type TableResult struct + Headers []string + RowCount int + Rows [][]string + RowsJSON []map[string]string + type TimeoutError struct + PageContext *PageContext + Reason string + Selector string + Suggestions []string + Timeout int64 + func (e *TimeoutError) Error() string + type Touch struct + func NewTouch(client *BiDiClient, browsingContext string) *Touch + func (t *Touch) Pinch(ctx context.Context, x, y float64, scale float64) error + func (t *Touch) Swipe(ctx context.Context, startX, startY, endX, endY float64) error + func (t *Touch) Tap(ctx context.Context, x, y float64) error + type Tracing struct + func (t *Tracing) Start(ctx context.Context, opts *TracingStartOptions) error + func (t *Tracing) StartChunk(ctx context.Context, opts *TracingChunkOptions) error + func (t *Tracing) StartGroup(ctx context.Context, name string, opts *TracingGroupOptions) error + func (t *Tracing) Stop(ctx context.Context, opts *TracingStopOptions) ([]byte, error) + func (t *Tracing) StopChunk(ctx context.Context, opts *TracingChunkOptions) ([]byte, error) + func (t *Tracing) StopGroup(ctx context.Context) error + type TracingChunkOptions struct + Name string + Title string + type TracingGroupOptions struct + Location string + type TracingStartOptions struct + Categories []string + Name string + Screenshots bool + Snapshots bool + Sources bool + Title string + type TracingStopOptions struct + Path string + type Video struct + FilePath string + func (vid *Video) Delete(ctx context.Context) error + func (vid *Video) Path() string + type VideoOptions struct + Dir string + Size *VideoSize + type VideoSize struct + Height int + Width int + type Viewport struct + Height int + Width int + type WebSocketCloseHandler func(code int, reason string) + type WebSocketHandler func(*WebSocketInfo) + type WebSocketInfo struct + IsClosed bool + URL string + func (ws *WebSocketInfo) OnClose(handler WebSocketCloseHandler) + func (ws *WebSocketInfo) OnMessage(handler WebSocketMessageHandler) + type WebSocketMessage struct + Data string + Direction string + IsBinary bool + SocketID string + type WebSocketMessageHandler func(*WebSocketMessage) + type WindowState struct + Height int + IsVisible bool + State string + Width int + X int + Y int