skillfed

Selenium-Screenshot

This package is used to Clipped Images of Html Elements of Selenium Webdriver

selenium-screenshot v3.0.0 115.4K downloads/30d#12,251 on PyPI82
Permissive license MIT AGING released

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-screenshot

uv

uv add selenium-screenshot

poetry

poetry add selenium-screenshot

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.8

Tags

selenium screenshot captureweb page screenshot automationselenium element screenshothtml element clippingwebdriver screenshot toolselenium full page capturehide elements screenshot
web-automationscreenshot-capturetesting-tools

More Testing packages