Selenium-Screenshot
This package is used to Clipped Images of Html Elements of Selenium Webdriver
What it is and what it does
Selenium Screenshot wraps Selenium WebDriver to automate the capture of web page screenshots at the full-page or individual-element level. It accepts CSS selectors or WebElement objects to hide specific DOM nodes before capture, useful for removing sticky headers, navigation bars, or other transient UI elements from the final image. The package outputs PNG files and integrates directly with an existing Selenium browser session.
The tool is designed for test automation, visual regression testing, documentation generation, or any workflow where you need programmatic screenshots of live web content. It depends on Pillow for image handling and selenium for browser control, and targets Python 3.6.1 and later.
Use it for:
- Capture full-page screenshots in automated test suites while hiding dynamic UI elements like sticky headers.
- Extract and save screenshots of specific page sections (e.g., infoboxes, content areas) for documentation or reports.
- Generate visual snapshots of web pages for regression testing or visual comparison workflows.
- Automate screenshot collection across multiple pages or URLs for archival or monitoring purposes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Captures full-page or element-level screenshots of web pages and DOM elements using Selenium WebDriver, with support for hiding specific elements via CSS selectors or WebElement references.
Yes, if you need straightforward Selenium-based page or element screenshots with element-hiding support. The low install friction and permissive license make it accessible. However, the aging maintenance status and lack of recent release activity warrant caution if you depend on active support or compatibility with very recent Selenium or browser driver versions; verify compatibility with your specific environment first.
Install
selenium-screenshot on PyPI
pip
pip install selenium-screenshotuv
uv add selenium-screenshotpoetry
poetry add selenium-screenshotInstalling Selenium-Screenshot
Before you install
Low install friction with two straightforward dependencies (Pillow and selenium). Maintenance status is aging—last commit was 2025-07-24, though the repository remains active and not archived.
License in practice
MIT license is permissive, allowing use in commercial and private projects with minimal restrictions; you must include a copy of the license and copyright notice.
Quickstart
pip install Selenium-Screenshot
from selenium import webdriver
from Screenshot import Screenshot
driver = webdriver.Chrome()
driver.get("https://example.com")
ss = Screenshot(driver)
ss.capture_full_page("output.png")
driver.quit()
Requires a Selenium WebDriver instance (e.g., ChromeDriver) and a running browser; Python 3.6.1 or later.
Verify before relying
- Whether the package handles dynamic content or JavaScript rendering delays reliably.
- Performance characteristics when capturing very large pages or many elements in sequence.
- Compatibility with modern Selenium versions and current browser driver releases.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — Pillow, selenium |
| Maintenance | aging — 467 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,419/month — #12,251 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: selenium_screenshot-3.0.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
seleniumSelenium provides Python bindings to automate…
permissive · top 1,000 on PyPI
selenium-page-factoryImplements a page factory pattern for Selenium…
permissive · top 15,000 on PyPI
seletoolsProvides helper functions for Selenium…
permissive · top 15,000 on PyPI
nokapnokap captures screenshots and PDFs from web…
permissive · top 15,000 on PyPI
lambdatest-selenium-driverCaptures visual snapshots during Selenium tests…
permissive · top 15,000 on PyPI
selenium-wireExtends Selenium's Python bindings to…
permissive · top 5,000 on PyPI
requestiumRequestium merges Requests, Selenium, and…
permissive · top 15,000 on PyPI
percy-seleniumIntegrates Percy visual testing into Python…
permissive · top 15,000 on PyPI
screenshotoneA Python SDK for the ScreenshotOne.com API that…
permissive · top 15,000 on PyPI
mssCaptures screenshots from one or all monitors…
permissive · top 5,000 on PyPI