Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Quickstart: Selenium

Run Selenium WebDriver against a cloud browser. No AI, no infrastructure, no local browser required.

Quickstart: Selenium demo

Works with

TypeScriptTypeScriptPythonPythonSeleniumSelenium

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Copy prompt to run with your AI agent
npx create-browser-app --template quickstart-selenium
uvx create-browser-app --template quickstart-selenium

Send this template to your email, or view it on your desktop for the source code.

Get started with Selenium and Browserbase

Run Selenium WebDriver against a cloud browser powered by Browserbase. No AI, no infrastructure, no local browser required. Create a session, connect with `ClientConfig` for auth, and use standard Selenium patterns: navigation, element clicks, `WebDriverWait` conditions, and text extraction. One script, one API key, cloud browser ready.

Steps

  1. Create a Browserbase session and connect via Selenium WebDriver with custom auth headers
  2. Navigate to a target site and verify the URL and page title
  3. Click interactive elements and wait for conditions with WebDriverWait
  4. Navigate between pages using link clicks and URL assertions
  5. Extract headings and page copy from the final destination

Most Popular Templates

MFA handling: TOTP code generation

Automate MFA completion using TOTP code generation with RFC 6238 compliant algorithm

MFA handling: TOTP code generation

Documentation checker with Cerebras

Crawl any docs site, discover its source repo, and verify documentation accuracy against the actual codebase using Cerebras LLMs.

Documentation checker with Cerebras

Extract company data from websites

Extract company value propositions from websites for lead enrichment and outreach

Extract company data from websites
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service