skillfed

percy-selenium

Python client for visual testing with Percy

percy-selenium v2.2.1 132.7K downloads/30d#11,540 on PyPI12
Permissive license MIT Active released

What it is and what it does

percy-selenium is a Python client that connects Selenium browser automation to Percy's visual testing service. It provides functions like percy_snapshot() and percy_screenshot() that capture the current state of a web page and send it to Percy for comparison against baseline images, flagging visual regressions when they occur.

The package wraps selenium and requests to communicate with Percy's infrastructure. It requires the @percy/cli Node package and a PERCY_TOKEN to function; without them, snapshot calls are no-ops. It supports both standard visual snapshots and Percy on Automate screenshots, with options for full-page capture, animated image freezing, region-based comparison, and selective element ignoring or consideration during diff analysis.

Use it for:

  • Detect unintended visual changes in UI components across browser versions or screen sizes
  • Validate responsive design by capturing snapshots at different viewport dimensions
  • Monitor visual consistency of marketing or public-facing pages after code deployments
  • Automate screenshot comparison in CI/CD pipelines to catch layout or styling regressions
  • Test visual appearance of dynamically generated content or third-party integrations

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Percy visual testing into Python Selenium tests, capturing and comparing screenshots against baseline images to detect visual regressions.

Yes, if you are already using Selenium for browser automation and want to add visual regression detection to your test suite. The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a straightforward addition. You will need to set up @percy/cli and obtain a Percy project token; without those, the package is present but inactive.

Install

percy-selenium on PyPI

pip

pip install percy-selenium

uv

uv add percy-selenium

poetry

poetry add percy-selenium

Installing percy-selenium

Before you install

Low install friction with a pure-Python wheel. Actively maintained with a recent release; last commit on 2026-08-10 and production-stable status indicate ongoing support.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.

Quickstart

pip install percy-selenium

from percy import percy_snapshot
from selenium import webdriver

browser = webdriver.Firefox()
browser.get('http://example.com')
percy_snapshot(browser, 'Python example')

Requires @percy/cli to be installed via npm and PERCY_TOKEN environment variable set to upload snapshots; without these, snapshots are silently disabled.

Verify before relying

  • Whether percy-selenium works with all Selenium driver types or only specific ones
  • Performance impact of snapshot operations on test execution time
  • Compatibility with headless browser modes and remote WebDriver instances

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 2 — selenium, requests
Maintenance actively maintained — 32 days since the last release
Last repo commit
First released
Downloads 132,718/month — #11,540 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: percy_selenium-2.2.1-py3-none-any.whl

Keywords: selenium, percy, visual, testing

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

visual regression testing seleniumpercy python selenium integrationscreenshot comparison testingvisual testing automationpercy snapshots python
visual-testingselenium-integrationregression-detection

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

lambdatest-selenium-driver

Captures visual snapshots during Selenium tests…

permissive · top 15,000 on PyPI

percy-appium-app

Integrates Percy visual testing into Python…

permissive · top 15,000 on PyPI

pytest-textual-snapshot

A pytest plugin that captures SVG screenshots…

permissive · top 15,000 on PyPI

Selenium-Screenshot

Captures full-page or element-level screenshots…

permissive · top 15,000 on PyPI

eyes-selenium

Visual testing SDK for Selenium and Appium…

unclear · top 15,000 on PyPI

pytest-playwright-visual

A pytest plugin that captures and compares…

permissive · top 15,000 on PyPI

PyScreeze

PyScreeze captures screenshots and locates…

permissive · top 5,000 on PyPI

selenium

Selenium provides Python bindings to automate…

permissive · top 1,000 on PyPI

browserstack-local

Provides Python bindings to manage BrowserStack…

unclear · top 15,000 on PyPI

selenium-wire

Extends Selenium's Python bindings to…

permissive · top 5,000 on PyPI