testenv

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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