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 FetchRequestOptions ¶
func FetchRequestOptions(f InitFetchRoundtripOptionsFunc) browser.BrowserOption
func SetDefaultFetchDelay ¶
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