chromium

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAllocator

func NewAllocator(flags map[string]interface{}, env []string) allocation.Allocator

func NewBrowserType

func NewBrowserType(ctx context.Context) api.BrowserType

Types

type Allocator

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

func (*Allocator) Allocate

func (a *Allocator) Allocate(ctx context.Context, launchOpts *common.LaunchOptions) (*common.BrowserProcess, error)

Allocate starts a new local browser process

type Browser

type Browser struct {
	common.Browser
}

type BrowserType

type BrowserType struct {
	Ctx      context.Context
	CancelFn context.CancelFunc
	// contains filtered or unexported fields
}

func (*BrowserType) Connect

func (b *BrowserType) Connect(opts goja.Value)

func (*BrowserType) ExecutablePath

func (b *BrowserType) ExecutablePath() string

func (*BrowserType) Launch

func (b *BrowserType) Launch(opts goja.Value) api.Browser

Launch creates a new client to remote control a Chrome browser.

func (*BrowserType) LaunchPersistentContext

func (b *BrowserType) LaunchPersistentContext(userDataDir string, opts goja.Value) api.Browser

func (*BrowserType) Name

func (b *BrowserType) Name() string

Jump to

Keyboard shortcuts

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