Skip to main content

Module chrome

Module chrome 

Source

Structs§

BrowserVersion
Browser version information returned by /json/version.
ChromeProcess
A handle to a running Chrome process.
LaunchConfig
Configuration for launching a Chrome process.
TargetInfo
Information about a single debuggable target (tab, service worker, etc.).

Enums§

Channel
Chrome release channel.
ChromeError
Errors that can occur during Chrome discovery and launch.

Functions§

activate_target
Activate a target via Chrome’s /json/activate/{id} endpoint.
default_user_data_dir
Returns the default Chrome user data directory for the current platform.
discover_chrome
Attempt to discover a running Chrome instance.
find_available_port
Find an available TCP port on localhost.
find_chrome_executable
Find a Chrome executable for the given release channel.
launch_chrome
Launch a Chrome process with the given configuration.
query_targets
Query Chrome’s /json/list endpoint for debuggable targets.
query_version
Query Chrome’s /json/version endpoint.
read_devtools_active_port
Read the DevToolsActivePort file from the default user data directory.
read_devtools_active_port_from
Read the DevToolsActivePort file from a specific directory.