browsertest

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBrowser

func InitBrowser(t testing.TB, handler http.Handler, engine html.ScriptEngine) *browser.Browser

InitBrowser creates a browser with a script engine and a default set of options. If no engine is passed, V8 will be used.

This browser will be configured to log to the t instance. As a consequence, uncaught JavaScript errors will result in a test error.

func InitWindow

func InitWindow(t testing.TB, engine html.ScriptEngine) htmltest.WindowHelper

InitBrowser creates a browser and an empty window with a script engine and a default set of options.

See also: InitBrowser

Types

This section is empty.

Jump to

Keyboard shortcuts

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