Documentation
¶
Index ¶
- func Ping(ctx context.Context) (string, error)
- func Shutdown() error
- type Browser
- func (b *Browser) BrowserName() string
- func (b *Browser) CdpWebSocketURL() string
- func (b *Browser) Close(ctx context.Context) error
- func (b *Browser) InitialTab() *Tab
- func (b *Browser) LaunchNote() string
- func (b *Browser) NewTab(ctx context.Context) (*Tab, error)
- func (b *Browser) Ping(ctx context.Context, message string) (string, error)
- func (b *Browser) SessionID() string
- func (b *Browser) UserDataDir() string
- type ClickResult
- type LaunchOptions
- type NavigateResult
- type Tab
- func (t *Tab) Click(ctx context.Context, cssSelector string) (*ClickResult, error)
- func (t *Tab) Close(ctx context.Context) error
- func (t *Tab) Navigate(ctx context.Context, url string) (*NavigateResult, error)
- func (t *Tab) Ping(ctx context.Context, message string) (string, error)
- func (t *Tab) SessionID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func LaunchChrome ¶
func LaunchChrome(ctx context.Context, options LaunchOptions) (*Browser, error)
func (*Browser) BrowserName ¶
func (*Browser) CdpWebSocketURL ¶
func (*Browser) InitialTab ¶
func (*Browser) LaunchNote ¶
func (*Browser) UserDataDir ¶
type ClickResult ¶
type LaunchOptions ¶
type LaunchOptions struct {
ChromeBinary string
}
type NavigateResult ¶
type NavigateResult struct {
}
Click to show internal directories.
Click to hide internal directories.