Documentation ¶
Index ¶
- Variables
- type Browser
- func (b *Browser) Load(url string) error
- func (b *Browser) Reset(url string) error
- func (b *Browser) Start() error
- func (b *Browser) Status() (browser.Status, error)
- func (b *Browser) Stop() error
- func (b *Browser) Title() (string, error)
- func (b *Browser) URL() (string, error)
- func (b *Browser) Wait()
- type Options
- type OptionsFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultChromeArgs = []string{
"--remote-allow-origins=*",
}
Functions ¶
This section is empty.
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func NewBrowser ¶
func NewBrowser(funcs ...OptionsFunc) *Browser
type Options ¶
func NewOptions ¶
func NewOptions(funcs ...OptionsFunc) *Options
type OptionsFunc ¶
type OptionsFunc func(opts *Options)
func WithAdditionalChromeArgs ¶
func WithAdditionalChromeArgs(args ...string) OptionsFunc
func WithWindowSize ¶
func WithWindowSize(width, height int) OptionsFunc
Click to show internal directories.
Click to hide internal directories.