cftbrowser

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cftbrowser downloads and caches Chrome for Testing binaries from Google's official API (https://googlechromelabs.github.io/chrome-for-testing/).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBrowser

func EnsureBrowser(ctx context.Context) (string, error)

EnsureBrowser downloads and caches Chrome for Testing if not already present. Returns the path to the chrome binary. Progress goes to progressOut (stderr), never stdout.

func FindCachedBrowser

func FindCachedBrowser() (string, error)

FindCachedBrowser looks for an already-downloaded Chrome for Testing binary without making any network requests. Returns the binary path or an error.

func IsSupported

func IsSupported() bool

IsSupported returns true if the current OS/arch has Chrome for Testing builds.

func PlatformKey

func PlatformKey() (string, error)

PlatformKey returns the CfT platform string for the current OS/arch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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