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 ¶
const Version = "v0.48.2"
Version of Rod
Variables ¶
var Bin string
Bin path of chrome executable file
var CDP bool
CDP enables cdp log
var Dir string
Dir to store browser profile, such as cookies
var Monitor string
Monitor enables the monitor server that plays the screenshots of each tab
var Port string
Port of the remote debugging port
var Proxy string
Proxy for the browser
var Quiet bool
Quiet is only useful when Trace is enabled. It decides whether to log tracing message or not.
var Remote bool
Remote enables to launch browser remotely
var Show bool
Show disables headless mode
var Slow time.Duration
Slow enables slowmotion mode if not zero
var Trace bool
Trace enables tracing
var URL string
URL of the remote debugging address
Functions ¶
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.