driver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 8 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 NewBrowser

func NewBrowser(parent context.Context) (*Browser, error)

func (*Browser) Close

func (b *Browser) Close()

func (*Browser) NewPage

func (b *Browser) NewPage() (*Page, error)

type Page

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

func (*Page) Close

func (p *Page) Close()

func (*Page) Context

func (p *Page) Context() context.Context

func (*Page) Eval

func (p *Page) Eval(script string) error

func (*Page) Evaluate

func (p *Page) Evaluate(script string, out any) error

func (*Page) FullScreenshot

func (p *Page) FullScreenshot(path string) error

func (*Page) Goto

func (p *Page) Goto(url string) error

func (*Page) Screenshot

func (p *Page) Screenshot(selector, path string) error

func (*Page) SetViewport

func (p *Page) SetViewport(width, height int) error

func (*Page) Wait

func (p *Page) Wait(d time.Duration)

func (*Page) WaitForFunction

func (p *Page) WaitForFunction(expr string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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