browseroptions

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package browseroptions contains more "advanced" options to pass to the browser.

These were extracted to a separate package to avoid adding unnecessary dependencies to the root browser package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchDelay

func FetchDelay(d time.Duration) browser.BrowserOption

FetchDelay defines the simulated delay from issuing a fetch request until the response is available in simulated time.

Warning: Using both FetchDelay and FetchRequestOptions will cause undefined behaviour. If you need to explicitly control delay for individual requests, use FetchRequestOptions, and let it fall back to a default delay for requests not explicitly handled.

func SetDefaultFetchDelay

func SetDefaultFetchDelay(d time.Duration)

SetDefaultFetchDelay overrides the default delay for HTTP response processing.

Note: This is a global default, and should only ever be set in a init function; and preferably not at all. If the delay affects the outcome of a test, the test should explicitly control that delay.

Types

type FetchRoundtripOptions

type FetchRoundtripOptions = fetch.RoundtripOptions

FetchRoundtripOptions describes properties for an individual fetch request.

type InitFetchRoundtripOptionsFunc

type InitFetchRoundtripOptionsFunc = fetch.InitRoundTripOptionsFunc

Jump to

Keyboard shortcuts

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