browser

package
v0.0.0-...-5c97e34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Browser

func (*Browser) Close

func (b *Browser) Close() error

func (*Browser) Cookies

func (b *Browser) Cookies() []*proto.NetworkCookie

func (*Browser) GetCookie

func (b *Browser) GetCookie(name string) (*proto.NetworkCookie, bool)

func (*Browser) MustPage

func (b *Browser) MustPage(url ...string) *rod.Page

func (*Browser) SetCookie

func (b *Browser) SetCookie(c *proto.NetworkCookie)

func (*Browser) Visit

func (b *Browser) Visit(url string, wait time.Duration) error

type Config

type Config struct {
	BrowserBin    string
	GlobalTimeout time.Duration
	Debug         bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL