Skip to content

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).

ValueDescription
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

PropertyTypeDescription
backendBrowserBackend
headedbool
navigationTimeoutSecondsint
actionTimeoutSecondsint
dockerImageString
dockerPortint
steelApiKeyString?
browserbaseApiKeyString?
browserbaseProjectIdString?
browserlessBaseUrlString?
browserlessApiKeyString?
anchorApiKeyString?
hyperbrowserApiKeyString?
isConfiguredbool getWhether the selected backend has valid credentials/configuration.
isConfiguredbool getWhether the selected backend has valid credentials/configuration.

Released under the MIT License.