Documentation
¶
Overview ¶
Package testenv reads the environment variables that change the tests of chromedp. The tests of the core package, of the package remote and of the module test share it. It imports no chromedp package, so that the tests of the core package can import it too.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug() bool
Debug reports whether the tests must log every protocol message. The variable CHROMEDP_DEBUG turns it on.
func ExecPath ¶
func ExecPath() string
ExecPath returns the browser binary that the tests use. The variable CHROMEDP_TEST_RUNNER names it. Without the variable, ExecPath looks for a browser in the usual places and returns the empty string when it finds none.
func NoSandbox ¶
func NoSandbox() bool
NoSandbox reports whether the tests must start the browser without its sandbox. It is true unless CHROMEDP_NO_SANDBOX is "false".
func VisibleWindow ¶
func VisibleWindow() bool
VisibleWindow reports whether the tests must show the window of the browser. The variable CHROMEDP_VISIBLEWINDOW asks for it, and so does the old name CHROMEDP_NO_HEADLESS. Any value other than the empty string, "false" and "0" is true for the first variable, and any value other than the empty string and "false" is true for the second.
Types ¶
This section is empty.