zope.testbrowser
Programmable browser for functional black-box tests
Decision gist · record as of 2026-08-14
Yes, if you are testing a WSGI application or have a clear need for headless form automation in a test suite. The package is actively maintained, has no known vulnerabilities, and integrates well with standard testing frameworks. The main condition is that you must provide or wrap your application as WSGI; it is not a general-purpose web scraper. License clarity should be confirmed for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a WSGI application instance; cannot test arbitrary websites without wrapping them in WSGI.
- Minimum Python 3.9.
- Low friction install with a pure Python wheel.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License). License treatment is marked unclear in the fact sheet; review the full license terms before use in proprietary or copyleft-sensitive projects.
last release 2025-09-12 (336 days) · last repo commit 2026-05-18 · 21 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 129,437 downloads/mo, #11,671 on PyPI
Alternatives
Verify before relying
pip install zope.testbrowser
from zope.testbrowser.wsgi import Browser
browser = Browser(wsgi_app=my_app)
browser.open('http://example.com')
control = browser.getControl(name='field_name')
control.value = 'test_value'- Whether ZPL-2.1 is compatible with your project's license or distribution model
- Performance characteristics when testing large forms or high-volume interactions
- Compatibility with modern JavaScript-heavy sites (package focuses on HTML/form testing)
What it is and what it does
zope.testbrowser is a headless browser library designed for automated testing of web applications. It wraps WebTest and BeautifulSoup4 to provide a high-level API for navigating pages, filling forms, clicking links, and inspecting responses—all without a graphical browser. It's commonly used in functional black-box tests for WSGI applications, though it can work with any HTTP-based site.
The package handles cookies, redirects, form submission (GET and POST), file uploads, and control selection by name or label. It maintains browser state across requests and provides introspection of page content. Since version 5.0, it has used WebTest internally rather than mechanize, and requires explicit WSGI app setup rather than relying on Zope's testing infrastructure.
Use it for
- Test form submission and validation in a WSGI application without running a browser
- Automate functional tests that verify user workflows across multiple pages
- Inspect and manipulate form controls programmatically in test suites
- Verify HTTP redirects, cookies, and response headers in integration tests
- Validate HTML link targets and form structure in automated test scenarios
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are testing a WSGI application or have a clear need for headless form automation in a test suite.
The package is actively maintained, has no known vulnerabilities, and integrates well with standard testing frameworks. The main condition is that you must provide or wrap your application as WSGI; it is not a general-purpose web scraper. License clarity should be confirmed for your use case.
Install
zope-testbrowser on PyPI
Before you install
Low friction install with a pure Python wheel. Actively maintained as of 2025-09-12 with recent Python version support (3.9–3.14). Ten runtime dependencies are all established packages; no compiled dependencies.
Requires a WSGI application instance; cannot test arbitrary websites without wrapping them in WSGI. Minimum Python 3.9.
License in practice
Licensed under ZPL-2.1 (Zope Public License). License treatment is marked unclear in the fact sheet; review the full license terms before use in proprietary or copyleft-sensitive projects.
Quickstart
pip install zope.testbrowser
from zope.testbrowser.wsgi import Browser
browser = Browser(wsgi_app=my_app)
browser.open('http://example.com')
control = browser.getControl(name='field_name')
control.value = 'test_value'
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license or distribution model
- Performance characteristics when testing large forms or high-volume interactions
- Compatibility with modern JavaScript-heavy sites (package focuses on HTML/form testing)
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagessetuptoolszope.interfacezope.schemazope.cachedescriptorspytzWebTestBeautifulSoup4SoupSieveWSGIProxy2legacy-cgi |
| Maintenance | Actively maintained 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 129,437 / month, #11,671 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Testing |
Evidence: zope_testbrowser-8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “automated web testing”
- zope.testbrowserzope.testbrowser provides a programmable web browser for automated…
- seleniumSelenium provides Python bindings to automate web browser…
- eyes-seleniumVisual testing SDK for Selenium and Appium WebDrivers that detects…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also zope.browserpage · Zope · zope.globalrequest · django-webtest · zope.testrunner · zope.publisher · zope.browser · mechanize · zope.testing · zope.proxy