browser

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 9 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 Launch

func Launch(setters ...Option) (*Browser, error)

func (*Browser) Close

func (b *Browser) Close() error

func (*Browser) DebuggingAddress

func (b *Browser) DebuggingAddress() string

func (*Browser) DebuggingPort

func (b *Browser) DebuggingPort() int

func (*Browser) Flags

func (b *Browser) Flags() Flags

type Flags

type Flags map[string]interface{}

func DefaultFlags

func DefaultFlags() Flags

func (Flags) Get

func (flags Flags) Get(arg string) (interface{}, error)

func (Flags) GetInt

func (flags Flags) GetInt(arg string) (int, error)

func (Flags) GetString

func (flags Flags) GetString(arg string) (string, error)

func (Flags) Has

func (flags Flags) Has(arg string) bool

func (Flags) List

func (flags Flags) List() []string

func (Flags) Set

func (flags Flags) Set(arg string, value interface{}) (err error)

func (Flags) SetN

func (flags Flags) SetN(arg string) (err error)

func (Flags) String

func (flags Flags) String() string

type Option

type Option func(opts *Options)

func WithCustomInstallation

func WithCustomInstallation(executablePath string) Option

func WithDebugginPort

func WithDebugginPort(num int) Option

func WithDevtools

func WithDevtools() Option

func WithHeadless

func WithHeadless() Option

func WithIO

func WithIO() Option

func WithIgnoredHTTPSErrors

func WithIgnoredHTTPSErrors() Option

func WithSlowMo

func WithSlowMo() Option

func WithUserDataDir

func WithUserDataDir(str string) Option

func WithoutDefaultArgs

func WithoutDefaultArgs() Option

func WithoutUserDataDir

func WithoutUserDataDir() Option

type Options

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

Jump to

Keyboard shortcuts

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