Skip to main content

Crate chrome_for_testing_manager

Crate chrome_for_testing_manager 

Source
Expand description

Programmatic management of Chrome for Testing installations.

Resolves a chrome / chromedriver pair against the Chrome for Testing release index, downloads it into a per-user cache, spawns chromedriver on a configurable or OS-assigned port, and (with the default thirtyfour feature) provides managed WebDriver sessions that tear down on drop.

Start with Chromedriver::run / Chromedriver::run_default. Reach for ChromeForTestingManager when you need finer control over the resolve / download / launch steps.

Structs§

ChromeForTestingManager
Lower-level orchestrator for chrome-for-testing artifacts.
Chromedriver
A handle to a spawned chromedriver process plus its resolved Chrome / ChromeDriver binaries.
ChromedriverRunConfig
Configuration used when running a ChromeDriver process.
DriverOutputInspectors
Long-lived line-inspecting Consumer handles for the chromedriver process’s stdout and stderr streams.
DriverOutputLine
One parsed line from the browser-driver process output.
DriverOutputListener
Callback invoked for each parsed browser-driver output line.
GracefulShutdown
Per-platform graceful-shutdown policy passed to ProcessHandle::terminate and related APIs.
GracefulShutdownBuilder
Typestate builder for GracefulShutdown. Created via GracefulShutdown::builder.
LoadedChromePackage
A downloaded Chrome and ChromeDriver pair, with their on-disk executable paths resolved.
Port
A TCP port bound (or to be bound) by a chromedriver process.
SelectedVersion
A version of Chrome and ChromeDriver that has been resolved against the chrome-for-testing release index but not yet downloaded.
Session
A browser session. Used to control the browser.
UnixGracefulPhase
One step of a Unix graceful-shutdown sequence: a signal to send and a maximum time to wait for the child to exit before escalating.
UnixGracefulShutdown
One or more graceful-shutdown phases dispatched on Unix before the implicit SIGKILL fallback.
Version
A version identifier.
WindowsGracefulShutdown
Single-phase Windows graceful-shutdown sequence.

Enums§

Channel
Chrome release channel.
ChromeForTestingArtifact
The chrome-for-testing artifact involved in an operation.
ChromeForTestingManagerError
Error contexts reported by chrome-for-testing-manager operations.
DriverOutputSource
The browser-driver output stream source.
PortRequest
How chromedriver should pick the port it listens on.
UnixGracefulSignal
Graceful-shutdown signal that can be the first or escalation step on Unix before the implicit SIGKILL fallback.
VersionRequest
How to pick which Chrome / ChromeDriver version to install and run.

Type Aliases§

Result
Convenience alias for Result<T, rootcause::Report<ChromeForTestingManagerError>>.