SeleniumBase Python Browser Automation and Stealth Testing Framework
SeleniumBase is a Python framework for browser automation, end-to-end testing, and stealthy web interaction. It layers pytest-friendly test structure, browser control, reporting, and anti-bot-aware CDP and UC modes on top of Selenium workflows.
Prerequisites
Python 3.9+
Installation
Use the upstream install or setup path that matches your environment:
- pip install seleniumbase
- git clone https://github.com/seleniumbase/SeleniumBase.git
- pip install -e .
- pip install allure-pytest
Requirements and caveats from upstream:
Basic usage or getting-started notes:
📚 The SeleniumBase/examples/ folder includes over 100 ready-to-run examples of E2E testing. Examples that start with test_ or end with _test.py/_tes...
📝 This example demonstrates the drop-in patch that makes Playwright stealthy:
Extracted from upstream docs: https://raw.githubusercontent.com/seleniumbase/SeleniumBase/HEAD/README.md