testutil

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil provides test utilities for Chrome tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromeInstance

type ChromeInstance struct {
	Port int
	// contains filtered or unexported fields
}

ChromeInstance represents a running Chrome instance for testing.

func StartChrome

func StartChrome(port int) (*ChromeInstance, error)

StartChrome starts a headless Chrome instance on the specified port. Returns a ChromeInstance that must be stopped with Stop().

func (*ChromeInstance) Stop

func (c *ChromeInstance) Stop() error

Stop terminates the Chrome instance and cleans up.

Jump to

Keyboard shortcuts

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