Integration

BrowseFleet + Selenium

Selenium WebDriver is the most widely-used browser automation framework. BrowseFleet provides a Selenium-compatible endpoint that works with existing WebDriver configurations. Teams with large Selenium test suites can migrate to cloud browsers without rewriting tests. Just update the remote WebDriver URL.

Installation

terminal
pip install selenium browsefleet-python
# or
npm install selenium-webdriver browsefleet

Code Example

example
# Python example
from selenium import webdriver
from selenium.webdriver.common.by import By
from browsefleet import BrowseFleet

bf = BrowseFleet(api_key='bf_...')

# Create a cloud browser session
session = bf.sessions.create(stealth='full')

# Connect Selenium via Remote WebDriver
options = webdriver.ChromeOptions()
driver = webdriver.Remote(
    command_executor=session.selenium_url,
    options=options,
)

# Use Selenium exactly as before
driver.get('https://example.com')

# Find elements and interact
search = driver.find_element(By.NAME, 'q')
search.send_keys('cloud browsers')
search.submit()

# Extract results
results = driver.find_elements(By.CSS_SELECTOR, '.result')
for result in results:
    title = result.find_element(By.TAG_NAME, 'h3').text
    print(f'Result: {title}')

# Screenshots
driver.save_screenshot('results.png')

driver.quit()
session.close()

Supported Features

  • Selenium Remote WebDriver compatibility
  • Works with Python, Java, C#, Ruby, JavaScript
  • Element finding with all locator strategies
  • Form interaction and submission
  • Screenshot capture
  • Cookie management
  • Window and frame switching
  • Alert handling
  • Stealth mode via session configuration
  • Drop-in replacement for existing test suites

Try BrowseFleet with Selenium

Free tier includes 500 daily requests. Connect Selenium in minutes.