BrowserPaths class

Provides canonical paths and URLs related to browser downloads and installations, mirroring the structure expected by tools like Playwright.

Constructors

BrowserPaths()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getBrowserInstallDirectory(String browserName, String revision) String
Gets the specific installation directory path for a given browserName and revision within the main registry directory obtained from getRegistryDirectory.
getDownloadUrls(String browserName, String revision, {String? browserVersion, String? platformOverride}) List<String>
Gets a list of potential full download URLs for a specific browserName and revision by combining cdnMirrors and downloadPaths for the current platform.
getExecutablePath(String browserName) String?
Gets the default platform-specific relative path for the browserName's executable within its installation folder.
getExecutablePathCandidates(String browserName) List<String>
Gets the platform-specific relative path for the browserName's executable within its installation folder.
getRegistryDirectory() String
Gets the root directory used for storing browser installations and metadata.
resolveExecutablePath(String browserName, String installDir) String?
Resolves the most likely executable path for an installed browser by checking candidate paths under installDir.

Constants

cdnMirrors → const List<String>
A list of base URLs for CDN mirrors hosting browser binary downloads.
downloadPaths → const Map<String, Map<String, String>>
Defines the platform-specific URL path templates used for downloading browser archives.
executablePathCandidates → const Map<String, Map<String, List<List<String>>>>
Defines platform-specific candidate paths to the main browser executable within its installation directory.