package
2.0.0+incompatible
Repository: https://github.com/grafana/xk6-browser.git
Documentation: pkg.go.dev
# Functions
ConstLookup is a LookupFunc that always returns the given value and true if the key matches the given key.
EmptyLookup is a LookupFunc that always returns "" and false.
IsBrowserHeadless returns true if the BrowserHeadless environment variable is not set or set to true.
Lookup is a LookupFunc that uses os.LookupEnv.
LookupBool returns the result of Lookup as a bool.
# Constants
BrowserArguments is an environment variable that can be used to pass extra arguments to the browser process.
BrowserEnableDebugging is an environment variable that can be used to define if the browser should be launched with debugging enabled.
BrowserExecutablePath is an environment variable that can be used to define the path to the browser to execute.
BrowserGlobalTimeout is an environment variable that can be used to set the global timeout for the browser.
BrowserHeadless is an environment variable that can be used to define if the browser should be launched in headless mode.
BrowserIgnoreDefaultArgs is an environment variable that can be used to define if the browser should ignore default arguments.
EnableProfiling is an environment variable that can be used to enable profiling for the browser.
InstanceScenarios is an environment variable that can be used to define the extra scenarios details to use when running remotely.
K6TestRunID represents the test run id.
LogCaller is an environment variable that can be used to enable the caller function information in the browser logs.
LogCategoryFilter is an environment variable that can be used to filter the browser logs based on their category.
LogLevel is an environment variable that can be used to set the log level for the browser logs.
ProfilingServerAddr is the address of the profiling server.
ScreenshotsOutput can be used to configure the browser module to upload screenshots to a remote location instead of saving to the local disk.
TracesMetadata is an environment variable that can be used to set additional metadata to be included in the generated traces.
WebSocketURLs is an environment variable that can be used to define the WS URLs to connect to when running remotely.
# Type aliases
LookupFunc defines a function to look up a key from the environment.