chrome

package module
v0.0.0-...-7754151 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: 0BSD Imports: 15 Imported by: 1

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
}

Browser is a struct that contains all the top level variables.

func New

func New(opts ...Option) (*Browser, error)

New creates a new browser instance with the given context.

func (*Browser) Click

func (b *Browser) Click(ctx context.Context, id dom.NodeID) error

func (*Browser) Close

func (b *Browser) Close() error

func (*Browser) Evaluate

func (b *Browser) Evaluate(ctx context.Context, exp string) (string, error)

Evaluate evaluates the given JavaScript expression.

func (*Browser) File

func (b *Browser) File(ctx context.Context, id dom.NodeID, paths []string) error

func (*Browser) Navigate

func (b *Browser) Navigate(ctx context.Context, url string) error

Navigate navigates to the given URL.

func (*Browser) Screenshot

func (b *Browser) Screenshot(ctx context.Context) ([]byte, error)

func (*Browser) Select

func (b *Browser) Select(ctx context.Context, selector string) (dom.NodeID, error)

func (*Browser) Start

func (b *Browser) Start(ctx context.Context) error

func (*Browser) Text

func (b *Browser) Text(ctx context.Context, s string) error

type Option

type Option func(option *options) error

Jump to

Keyboard shortcuts

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