browserpath

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package browserpath resolves the Chrome/Chromium/Edge executable that chromedp should launch.

chromedp can discover a browser on its own, but its search is not uniform across platforms: on Windows it looks for Chrome and Chromium but never a discovered Edge installation. Suites that need Edge — the only browser present on a stock Windows box — therefore have to resolve the executable themselves and pass it via chromedp.ExecPath.

Resolving explicitly on one platform and letting chromedp guess on the others is how the macOS gap appeared: a PATH-only lookup finds nothing, because Chrome on macOS installs to /Applications/Google Chrome.app and is not on PATH. The whole point of this package is that detection and launch share one code path on every OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find() (string, bool)

Find returns the browser executable to launch and whether one was found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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