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, 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 ElementResult
- type FillResult
- type HighlightOptions
- type HighlightResult
- type LaunchOptions
- type NavigateResult
- type PressOptions
- type PressResult
- type Tab
- func (t *Tab) Click(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, options ...CommandOptions) (*CountResult, error)
- func (t *Tab) Fill(ctx context.Context, cssSelector string, value string, ...) (*FillResult, error)
- func (t *Tab) Focus(ctx context.Context, cssSelector string, options ...CommandOptions) (*ElementResult, error)
- func (t *Tab) Highlight(ctx context.Context, cssSelector string, options ...HighlightOptions) (*HighlightResult, error)
- func (t *Tab) Hover(ctx context.Context, cssSelector string, options ...CommandOptions) (*ElementResult, error)
- func (t *Tab) InnerText(ctx context.Context, cssSelector string, options ...CommandOptions) (*TextResult, error)
- func (t *Tab) Navigate(ctx context.Context, url string, options ...CommandOptions) (*NavigateResult, error)
- func (t *Tab) Ping(ctx context.Context, message string) (string, error)
- func (t *Tab) Press(ctx context.Context, cssSelector string, key string, options ...PressOptions) (*PressResult, error)
- func (t *Tab) SessionID() string
- func (t *Tab) TextContent(ctx context.Context, cssSelector string, options ...CommandOptions) (*TextResult, error)
- func (t *Tab) WaitForSelector(ctx context.Context, cssSelector string, options ...WaitForSelectorOptions) (*WaitForSelectorResult, error)
- type TextResult
- type WaitForSelectorOptions
- type WaitForSelectorResult
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 CommandOptions ¶ added in v0.0.3
type CountResult ¶ added in v0.0.3
type ElementResult ¶ added in v0.0.5
type FillResult ¶ added in v0.0.5
type HighlightOptions ¶ added in v0.0.3
type HighlightResult ¶ added in v0.0.3
type LaunchOptions ¶
type NavigateResult ¶
type NavigateResult struct {
}
type PressOptions ¶ added in v0.0.5
type PressResult ¶ added in v0.0.5
type Tab ¶
type Tab struct {
// contains filtered or unexported fields
}
func (*Tab) Click ¶
func (t *Tab) Click(ctx context.Context, cssSelector string, options ...CommandOptions) (*ClickResult, error)
func (*Tab) Count ¶ added in v0.0.3
func (t *Tab) Count(ctx context.Context, cssSelector string, options ...CommandOptions) (*CountResult, error)
func (*Tab) Fill ¶ added in v0.0.5
func (t *Tab) Fill(ctx context.Context, cssSelector string, value string, options ...CommandOptions) (*FillResult, error)
func (*Tab) Focus ¶ added in v0.0.5
func (t *Tab) Focus(ctx context.Context, cssSelector string, options ...CommandOptions) (*ElementResult, error)
func (*Tab) Highlight ¶ added in v0.0.3
func (t *Tab) Highlight(ctx context.Context, cssSelector string, options ...HighlightOptions) (*HighlightResult, error)
func (*Tab) Hover ¶ added in v0.0.5
func (t *Tab) Hover(ctx context.Context, cssSelector string, options ...CommandOptions) (*ElementResult, error)
func (*Tab) InnerText ¶ added in v0.0.5
func (t *Tab) InnerText(ctx context.Context, cssSelector string, options ...CommandOptions) (*TextResult, error)
func (*Tab) Navigate ¶
func (t *Tab) Navigate(ctx context.Context, url string, options ...CommandOptions) (*NavigateResult, error)
func (*Tab) Press ¶ added in v0.0.5
func (t *Tab) Press(ctx context.Context, cssSelector string, key string, options ...PressOptions) (*PressResult, error)
func (*Tab) TextContent ¶ added in v0.0.5
func (t *Tab) TextContent(ctx context.Context, cssSelector string, options ...CommandOptions) (*TextResult, error)
func (*Tab) WaitForSelector ¶ added in v0.0.5
func (t *Tab) WaitForSelector(ctx context.Context, cssSelector string, options ...WaitForSelectorOptions) (*WaitForSelectorResult, error)
type TextResult ¶ added in v0.0.5
type WaitForSelectorOptions ¶ added in v0.0.5
type WaitForSelectorResult ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.