defaults

package
v0.63.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 4 Imported by: 16

Documentation

Overview

Package defaults holds some commonly used options parsed from env var "rod". Set them will set the default value of options used by rod. Each value is separated by a ",", key and value are separated by "=", For example:

rod=show,trace,slow,monitor

rod=show,trace,slow=1s,port=9222,monitor=:9223

Index

Constants

This section is empty.

Variables

Bin path of chrome executable file

View Source
var CDP bool

CDP enables cdp log

Dir to store browser profile, such as cookies

View Source
var Monitor string

Monitor enables the monitor server that plays the screenshots of each tab

View Source
var Port string

Port of the remote debugging port

View Source
var Proxy string

Proxy for the browser

View Source
var Quiet bool

Quiet is only useful when Trace is enabled. It decides whether to log tracing message or not.

View Source
var Remote bool

Remote enables to launch browser remotely

View Source
var Show bool

Show disables headless mode

Slow enables slowmotion mode if not zero

View Source
var Trace bool

Trace enables tracing

URL of the remote debugging address

Functions

func Reset added in v0.47.0

func Reset()

Reset all flags to their init values.

func ResetWithEnv added in v0.54.0

func ResetWithEnv()

ResetWithEnv all flags by the value of the rod env var.

Types

This section is empty.

Jump to

Keyboard shortcuts

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