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.
Click to show internal directories.
Click to hide internal directories.