Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2025 Changes in this version + type Browser struct + func NewBrowser(ctx context.Context, options *BrowserOptions) (*Browser, error) + func NewRemoteBrowser(ctx context.Context, remoteURL string, options *BrowserOptions) (*Browser, error) + func NewRemoteBrowserManager(ctx context.Context, remoteURL string, options *BrowserOptions) (*Browser, error) + func (b *Browser) Close() error + func (b *Browser) CloseTab() error + func (b *Browser) CloseTabByID(targetID target.ID) error + func (b *Browser) ConnectToTab(targetID target.ID) (*Browser, error) + func (b *Browser) Context() context.Context + func (b *Browser) GetTargetID() target.ID + func (b *Browser) ListTabs() ([]Tab, error) + func (b *Browser) NewPage() *Page + func (b *Browser) OpenTab(url string) (*Browser, error) + func (b *Browser) Run(actions ...chromedp.Action) error + type BrowserOptions struct + Fingerprint *fp.Fingerprint + Flags []string + Headless bool + RemoteURL string + Stealth bool + TargetID target.ID + Timeout time.Duration + UserDataDir string + WindowHeight int + WindowWidth int + func DefaultBrowserOptions() *BrowserOptions + type Page struct + func (p *Page) AddScriptToEvaluateOnNewDocument(jsCode string) error + func (p *Page) Back() error + func (p *Page) ClearInput(selector string) error + func (p *Page) Click(selector string) error + func (p *Page) ClickElementWithCtrl(selector string) error + func (p *Page) ClickOnNewTab(selector string) error + func (p *Page) ClickWithScroll(selector string) error + func (p *Page) ClickXY(x, y float64) error + func (p *Page) Evaluate(expression string, result interface{}) error + func (p *Page) FastCheckElement(selector string) bool + func (p *Page) FastWaitForElement(selector string, maxWaitMs int) error + func (p *Page) Focus(selector string) error + func (p *Page) Forward() error + func (p *Page) GetElementAttributes(nodeID cdp.NodeID) (map[string]string, error) + func (p *Page) GetElementBox(selector string) (*dom.BoxModel, error) + func (p *Page) HumanMouseMove(x, y float64) error + func (p *Page) HumanScroll(x, y float64) error + func (p *Page) KeyEvent(key string) error + func (p *Page) MouseClick(x, y float64, button input.MouseButton) error + func (p *Page) MouseClickCtrl(x, y float64) error + func (p *Page) MouseMove(x, y float64) error + func (p *Page) MouseWheel(x, y, deltaY float64) error + func (p *Page) Navigate(url string) error + func (p *Page) NavigateAndWait(url string, waitVisible string) error + func (p *Page) Nodes(selector string) ([]*cdp.Node, error) + func (p *Page) NodesAll(selector string) ([]*cdp.Node, error) + func (p *Page) ReadyState() (string, error) + func (p *Page) Reload() error + func (p *Page) RunActions(actions ...chromedp.Action) error + func (p *Page) Screenshot(buf *[]byte) error + func (p *Page) ScrollIntoView(selector string) error + func (p *Page) ScrollPage(scrollDownTimes, scrollUpTimes int) error + func (p *Page) SendKeys(selector, text string) error + func (p *Page) SendKeysChar(selector, text string) error + func (p *Page) SendKeysEnter(selector string) error + func (p *Page) SetGeolocation(lat, lng float64) error + func (p *Page) SetUserAgent(userAgent, platform string) error + func (p *Page) SetViewport(width, height int64, mobile bool) error + func (p *Page) Text(selector string, result *string) error + func (p *Page) Title(result *string) error + func (p *Page) URL(result *string) error + func (p *Page) Value(selector string, result *string) error + func (p *Page) WaitForReadyState(state string, timeout time.Duration) error + func (p *Page) WaitReady(selector string) error + func (p *Page) WaitVisible(selector string) error + type Tab struct + Attached bool + ID target.ID + Title string + Type string + URL string