chrome

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 16 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

type Launcher struct {
	Opts Options
	Cmd  *exec.Cmd
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Launcher, error)

func (*Launcher) Ready

func (l *Launcher) Ready() error

Ready should block until we chrome is up. This will return nil if all is well and an error otherwise.

func (*Launcher) Run

func (l *Launcher) Run(bctx context.Context) error

func (*Launcher) Stop

func (l *Launcher) Stop() error

type Options

type Options struct {
	StartingURL        string
	ChromeFlags        []string
	Port               int
	ChromePath         string
	IgnoreDefaultFlags bool
	UserDataDir        string

	//The time taken to wait for chrome to be ready.
	WaitTimeout time.Duration

	Verbose bool
}

func (Options) Flags

func (o Options) Flags() []string

Jump to

Keyboard shortcuts

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