Free tools Windows power users keep installed
One-click scans. No signup required.
Selenium can save a viewport or element screenshot as a PNG, but a PNG screenshot is not automatically transparent. Selenium’s documented methods explain how to capture the image; they do not promise that the output preserves transparent pixels. If you need real transparency, inspect the PNG’s alpha channel in the browser and capture setup you plan to use before relying on it.
What Selenium does—and does not—guarantee
There are three separate questions: whether Selenium captures the area you want, whether the file is a PNG, and whether the PNG contains transparent pixels where you need them. Selenium documents viewport and element captures, and WebDriver specifies screenshots as lossless PNG images returned as Base64. Neither PNG format nor a transparent CSS background proves that the exported pixels have alpha transparency. See the Selenium screenshot documentation and the W3C WebDriver Working Draft dated July 2, 2026.
As an Amazon Associate I earn from qualifying purchases.
The sources do not establish a browser-independent Selenium procedure that reliably produces transparent pixels. Treat transparency as something to verify for your particular browser, driver, and capture route—not as a result guaranteed by the screenshot method.
Capture a viewport or element with Selenium
Viewport screenshot in Python
Selenium documents save_screenshot for saving a viewport image:
#1 Best Overall
- 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
- Optical Zoom: 4x optical zoom with a 27mm wide angle lens for flexible framing indoors or outdoors
- Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
- Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
- LCD Screen and Battery: 2.7in LCD screen with 2 AA alkaline batteries for convenient on-the-go use
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--headless")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com")
saved = driver.save_screenshot("image.png")
if not saved:
raise RuntimeError("Selenium did not save the screenshot")
finally:
driver.quit()
The call writes a PNG file. It does not assert that any pixels in that file are transparent.
Element screenshot in Python
To capture one located element instead of the viewport, use the element’s screenshot method:
from selenium import webdriver
from selenium.webdriver.common.by import By
options = webdriver.ChromeOptions()
options.add_argument("--headless")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com")
element = driver.find_element(By.CSS_SELECTOR, ".target")
saved = element.screenshot("element.png")
if not saved:
raise RuntimeError("Selenium did not save the element screenshot")
finally:
driver.quit()
Replace .target with a selector that identifies the element on the page. Element capture changes the capture scope, not the documented transparency guarantee.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Rank #2
- 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
- Optical Zoom: 5x optical zoom with a 28mm wide angle lens for flexible framing indoors or outdoors
- Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
- Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
- Rechargeable Battery: Included LB-012 lithium-ion battery charges in the camera over USB with the supplied adapter in about 2 hours; charge it for at least 4 hours before first use to maximize battery life
Headless Chrome command-line capture
Chrome also documents a headless screenshot flag that can be paired with a window size:
chrome --headless --window-size=1280,800 --screenshot=shot.png https://example.com
This captures through Chrome’s command-line interface rather than Selenium. Chrome’s cited headless command-line reference documents --screenshot and --window-size, but does not promise alpha transparency.
How to verify actual transparency
If a downstream workflow requires a transparent asset, test the resulting file itself. Inspect its PNG color type or alpha channel with an image viewer or image-processing tool that exposes channel information, and check pixels in the areas that must be transparent. An image that merely appears to have a transparent-looking page background may instead contain an opaque background color.
Rank #3
- Latest Digital Camera Built-in Fill Light : This compact digital camera is paired with a powerful CMOS processor and image stabilization to help you take & record the most exciting moments in 44 MP quality images & FHD 1080P quality videos anywhere, anytime. Plus, there is also a built-in fill light to help you take high quality pictures even in low light&dark settings, making this the perfect camera for all indoors/outdoors situations.
- Long-Lasting Battery Life & 16X Digital Zoom :This point and shoot camera will retain its battery charge even after long use. The controls and functions are easy to operate making this the perfect choice for children, teens and younger. This kids camera supports 16x digital zoom, you can zoom in or out the subject by pressing the W/T button for taking still photos to zoom in or out on distant objects and capture all the details you need.
- Multifunctional & Portable Digital Camera: This cheap digital camera is slim enough to fit in your pocket. You'll easily be able to take it with you on all your indoor/outdoor activities and adventures and ideal for beginners, children and teenagers. This kids digital camera is equipped with 20 filters, anti-shaking, self-timer, continuous shooting, date stamp, time-lapse recording, smile capture, internal MIC and speaker (recording sound videos), great for your daily photography needs.
- WEBCAM & PAUSE FUNCTION : More than just a FHD 1080p digital camera, it also works as a webcam for video calls and vlogging. Connect the camera to the computer, press shutter and power button at the same time and the camera will automatically turn on webcam mode for all your video calling and live streaming needs. The pause function allows you to pause when seeing playback videos.
- A Must Have Photography Device : This digital camera with SD card made from high-quality materials, this retro camera is safe and durable. Perfect for all ages to develop & improve their photographic abilities and observation skills. Our dedicated and experienced 24/7 support team is available for all after purchase troubleshooting, questions and technical help.
- Set the page’s CSS background to transparent only if that is appropriate for the rendering. This affects page styling; it does not prove that the screenshot export retained alpha.
- Test the exact browser, driver, headless or headed mode, and screenshot method you intend to use.
- Check the PNG’s alpha values in the required areas and open it over more than one background color to catch opaque fills.
- If the capture is not transparent, do not treat changing the file extension or relying on CSS alone as a fix. Choose a capture path with an explicit alpha-preservation guarantee or use a workflow that creates transparency and verify its output.
Common problems and fixes
The PNG has a solid background
A PNG can be fully opaque. Confirm alpha-channel contents rather than inferring transparency from the extension or CSS. The cited Selenium and WebDriver documentation does not specify an alpha-preserving workflow.
The page looks transparent in the browser but not in the file
Browser rendering and exported image pixels are different requirements. Inspect the saved file; a CSS background setting alone is not evidence of transparent output.
The screenshot is blank or the page is incomplete
First verify that Selenium navigated to the intended page and that the element selector matches a visible element. A successful screenshot save only establishes that an image was written, not that the desired content or alpha channel is present.
Rank #4
- 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
- Optical Zoom: 5x optical zoom with a 28mm wide angle lens for flexible framing indoors or outdoors
- Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
- Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
- Rechargeable Battery: Included LB-012 lithium-ion battery charges in the camera over USB with the supplied adapter in about 2 hours; charge it for at least 4 hours before first use to maximize battery life
The headless CLI command does not produce transparency
The Chrome headless screenshot documentation explains capture flags and dimensions, not transparent output. Use it for ordinary headless capture, but verify any alpha requirement independently.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. A single request can return a screenshot or PDF, but the product facts provided do not establish that it exports transparent pixels; use it when you need a clean website capture, not as a claimed alpha-transparency solution. It accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides screenshot, page-info, and PDF-capture tools for AI agents.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesFor example, this cURL request captures a website as WebP; see the ScreenshotNeo documentation for request options:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
The free plan includes 1,000 screenshots per month with no card required; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




