Expand description
Resolve the BROWSER_CONTROL environment variable / --browser argument
into a concrete browser endpoint.
Parsing priority (most-to-least specific):
- URL with scheme
ws://,wss://,http://,https://→BrowserSelector::Url. - Absolute path that exists on disk →
BrowserSelector::ExecutablePath. - String that matches a
Kind(case-insensitive) →BrowserSelector::Kind. - Anything else →
BrowserSelector::Name.
Structs§
- Default
Resolver - Production resolver: real HTTP + on-disk browser detection.
- Resolved
Browser - Result of resolving a
BrowserSelector.
Enums§
- Browser
Selector - Parsed form of a
BROWSER_CONTROLvalue. - Source
- Where the resolved browser came from.
Traits§
- Resolver
- I/O surface for
resolve_with. Implementations provide HTTP discovery (/json/version) and the list of installed browsers.
Functions§
- parse
- Parse a raw
BROWSER_CONTROLvalue into aBrowserSelector. - resolve
- Resolve a selector using the real environment.
- resolve_
with - Resolve a selector using an injected
Resolverfor I/O.