BrowserConfig
Category: Web
Source: browser_config.dart
Enums
BrowserBackend
Supported browser execution backends.
We use "backend" here to describe the runtime environment where the browser session is provisioned (local process, docker container, or cloud service).
| Value | Description |
|---|---|
local | |
docker | |
steel | |
browserbase | |
browserless | |
anchor | |
hyperbrowser |
Classes
BrowserConfig
Configuration for the web_browser tool.
Constructor
dart
const BrowserConfig({
this.backend = BrowserBackend.local,
this.headed = false,
this.navigationTimeoutSeconds =
AppConstants.browserNavigationTimeoutSeconds,
this.actionTimeoutSeconds = AppConstants.browserActionTimeoutSeconds,
this.dockerImage = AppConstants.browserDockerImage,
this.dockerPort = AppConstants.browserDockerPort,
this.steelApiKey,
this.browserbaseApiKey,
this.browserbaseProjectId,
this.browserlessBaseUrl,
this.browserlessApiKey,
this.anchorApiKey,
this.hyperbrowserApiKey,
})Properties
| Property | Type | Description |
|---|---|---|
backend | BrowserBackend | |
headed | bool | |
navigationTimeoutSeconds | int | |
actionTimeoutSeconds | int | |
dockerImage | String | |
dockerPort | int | |
steelApiKey | String? | |
browserbaseApiKey | String? | |
browserbaseProjectId | String? | |
browserlessBaseUrl | String? | |
browserlessApiKey | String? | |
anchorApiKey | String? | |
hyperbrowserApiKey | String? | |
isConfigured | bool get | Whether the selected backend has valid credentials/configuration. |
isConfigured | bool get | Whether the selected backend has valid credentials/configuration. |