Skip to content

browserbase/example-form-fill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Browserbase Form Fill Examples

This repository contains examples of automating form submissions using Browserbase with different languages and frameworks. These examples accompany the Browserbase documentation on automating form submissions.

Getting Started

  1. Clone this repository:

    git clone https://github.com/browserbase/example-form-fill.git
    cd browserbase-form-fill-examples
  2. Choose your preferred language/framework:

    Python (Playwright)

    Navigate to the Python implementation:

    cd python

    Follow the setup instructions in python/README.md

    Node.js

    Navigate to the Node.js implementation:

    cd node

    Choose between two approaches:

    • Playwright: Traditional Playwright implementation with Browserbase
    • Stagehand: AI-powered automation using Browserbase's Stagehand

    Both examples are in TypeScript and demonstrate form automation with different approaches.

Environment Setup

Each implementation requires Browserbase credentials. Copy the appropriate .env.example file:

cp .env.example .env

Then fill in your credentials:

  • BROWSERBASE_API_KEY: Your Browserbase API key
  • BROWSERBASE_PROJECT_ID: Your Browserbase project ID

Examples Overview

Each implementation demonstrates how to:

  1. Create a Browserbase session
  2. Navigate to the form
  3. Fill in form fields
  4. Submit the form
  5. View the session replay

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published