$npx skillfedfor your agent

pytest-selenium

pytest plugin for Selenium

With conditionsPyPI UtilitiesReleased Feb 2024504.5K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_selenium-4.1.0-py3-none-any.whl
v4.1.0 · released 2024-02-01 · Python >=3.8 · 7 runtime deps: pytest-base-url, pytest-html, pytest-variables, pytest, requests, selenium, tenacity

Yes, if you are building browser automation tests and want to use pytest. The plugin is stable, actively maintained, has low install friction, and integrates cleanly with pytest's ecosystem. The MPL 2.0 copyleft license is a consideration for proprietary codebases. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Selenium WebDriver and a compatible browser driver (e.g., chromedriver, geckodriver) installed and in PATH or configured via environment.
  • Low install friction with a pure-wheel distribution.
  • The package is actively maintained (last commit 2026-05-25) and marked Production/Stable, with support across Python 3.8, 3.9, 3.10, 3.11, and 3.12 on CPython and PyPy.

License · maintenance · safety

copyleft license (copyleft) — Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license. This requires derivative works to be distributed under the same license and disclose source code changes, which may constrain proprietary use.

last release 2024-02-01 (925 days) · last repo commit 2026-05-25 · 352 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 504,519 downloads/mo, #6,297 on PyPI

Verify before relying

pip install pytest-selenium

import pytest
from selenium import webdriver

# Use pytest fixtures provided by the plugin
def test_example(selenium):
    selenium.get('http://example.com')
    assert 'Example' in selenium.title
  • Whether the plugin provides built-in fixtures for common browser setup/teardown patterns beyond what Selenium itself offers.
  • Support for parallel test execution and how it interacts with browser driver management.
  • Integration capabilities with cloud providers like BrowserStack or Sauce Labs (mentioned in keywords but not detailed in excerpt).
Same gist for agents: .md · .json

What it is and what it does

pytest-selenium bridges pytest and Selenium WebDriver, allowing you to write browser-based UI tests using pytest's fixture and parametrization system. It depends on pytest, selenium, requests, tenacity, and several pytest plugins (pytest-html, pytest-variables, pytest-base-url) to provide a cohesive testing environment. The plugin handles the plumbing of WebDriver lifecycle and test reporting, so you focus on test logic rather than browser setup.

The package is designed for teams running web automation tests at scale—it supports Python 3.8 through 3.12 and works on macOS, Windows, and POSIX systems. With active maintenance since 2015 and a recent commit on 2026-05-25, it is a mature choice in the pytest ecosystem for UI testing, though you will still need to manage WebDriver binaries and browser compatibility separately.

Use it for

  • Write cross-browser UI tests for web applications using pytest's familiar syntax and fixtures.
  • Integrate browser-based tests into CI/CD pipelines with pytest's reporting and plugin ecosystem.
  • Automate regression testing of web interfaces across multiple browsers and operating systems.
  • Combine Selenium tests with unit tests in a single pytest suite for end-to-end validation.
  • Leverage pytest parametrization to run the same UI test against different browsers or data sets.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building browser automation tests and want to use pytest.

The plugin is stable, actively maintained, has low install friction, and integrates cleanly with pytest's ecosystem. The MPL 2.0 copyleft license is a consideration for proprietary codebases. No known vulnerabilities.

Install

pytest-selenium on PyPI

Before you install

Low install friction with a pure-wheel distribution. The package is actively maintained (last commit 2026-05-25) and marked Production/Stable, with support across Python 3.8, 3.9, 3.10, 3.11, and 3.12 on CPython and PyPy.

Requires Selenium WebDriver and a compatible browser driver (e.g., chromedriver, geckodriver) installed and in PATH or configured via environment.

License in practice

Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license. This requires derivative works to be distributed under the same license and disclose source code changes, which may constrain proprietary use.

Quickstart

pip install pytest-selenium

import pytest
from selenium import webdriver

# Use pytest fixtures provided by the plugin
def test_example(selenium):
    selenium.get('http://example.com')
    assert 'Example' in selenium.title

Verify before relying

  • Whether the plugin provides built-in fixtures for common browser setup/teardown patterns beyond what Selenium itself offers.
  • Support for parallel test execution and how it interacts with browser driver management.
  • Integration capabilities with cloud providers like BrowserStack or Sauce Labs (mentioned in keywords but not detailed in excerpt).

Package facts

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
pytest-base-urlpytest-htmlpytest-variablespytestrequestsseleniumtenacity
MaintenanceActively maintained 925 days since the last release
Last repo commit
First released
Downloads504,519 / month, #6,297 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Natural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_selenium-4.1.0-py3-none-any.whl

Tags

Capabilities
selenium pytest pluginbrowser automation testingweb ui test frameworkselenium webdriver pytestautomated browser testingcross-browser test automationselenium test fixtures
Topics
browser-automationui-testingselenium-integration
PyPI keywords
browserstackpytestqasaucelabsseleniumwebqa

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 › “selenium pytest plugin”

  • pytest-seleniumpytest-selenium is a pytest plugin that integrates Selenium WebDriver…
  • pytest-parallelA pytest plugin that runs tests in parallel using multiprocessing and…
  • pytest-variablesA pytest plugin that loads test variables from JSON, YAML, TOML, or…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also browserstack-sdk · pytest-base-url · pytest-cpp · pytest-html · pytest-qt · pytest-variables · pytest-xprocess · pytest-django · seleniumbase · pytest-xml