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) NewTabWithOptions(ctx context.Context, options CommandOptions) (*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 CommandOptions
- type CountResult
- type HighlightOptions
- type HighlightResult
- type LaunchOptions
- type NavigateResult
- type Tab
- func (t *Tab) Click(ctx context.Context, cssSelector string) (*ClickResult, error)
- func (t *Tab) ClickWithOptions(ctx context.Context, cssSelector string, options CommandOptions) (*ClickResult, error)
- func (t *Tab) Close(ctx context.Context) error
- func (t *Tab) Count(ctx context.Context, cssSelector string) (*CountResult, error)
- func (t *Tab) CountWithOptions(ctx context.Context, cssSelector string, options CommandOptions) (*CountResult, error)
- func (t *Tab) Highlight(ctx context.Context, cssSelector string) (*HighlightResult, error)
- func (t *Tab) HighlightWithOptions(ctx context.Context, cssSelector string, options HighlightOptions) (*HighlightResult, error)
- func (t *Tab) Navigate(ctx context.Context, url string) (*NavigateResult, error)
- func (t *Tab) NavigateWithOptions(ctx context.Context, url string, options CommandOptions) (*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) NewTabWithOptions ¶ added in v0.0.3
func (*Browser) UserDataDir ¶
type ClickResult ¶
type CommandOptions ¶ added in v0.0.3
type CountResult ¶ added in v0.0.3
type HighlightOptions ¶ added in v0.0.3
type HighlightResult ¶ added in v0.0.3
type LaunchOptions ¶
type NavigateResult ¶
type NavigateResult struct {
}
type Tab ¶
type Tab struct {
// contains filtered or unexported fields
}
func (*Tab) ClickWithOptions ¶ added in v0.0.3
func (t *Tab) ClickWithOptions(ctx context.Context, cssSelector string, options CommandOptions) (*ClickResult, error)
func (*Tab) CountWithOptions ¶ added in v0.0.3
func (t *Tab) CountWithOptions(ctx context.Context, cssSelector string, options CommandOptions) (*CountResult, error)
func (*Tab) HighlightWithOptions ¶ added in v0.0.3
func (t *Tab) HighlightWithOptions(ctx context.Context, cssSelector string, options HighlightOptions) (*HighlightResult, error)
func (*Tab) NavigateWithOptions ¶ added in v0.0.3
func (t *Tab) NavigateWithOptions(ctx context.Context, url string, options CommandOptions) (*NavigateResult, error)
Click to show internal directories.
Click to hide internal directories.