Free tools Windows power users keep installed
One-click scans. No signup required.
Use Selenium Ruby’s save_screenshot method after opening the page. By default, it saves a PNG of the browser’s current viewport—not the entire page.
Take a viewport screenshot in Ruby
Install the selenium-webdriver gem and make sure a compatible browser and driver are available. This example opens a page, saves a screenshot, and quits the browser even if an error occurs:
As an Amazon Associate I earn from qualifying purchases.
require 'selenium-webdriver'
driver = Selenium::WebDriver.for :chrome
begin
driver.get 'https://example.com/'
driver.save_screenshot('./screenshot.png')
ensure
driver.quit
end
The key call is driver.save_screenshot('./screenshot.png'). Navigate to the target page first; the screenshot is taken from the active browser context. Selenium’s WebDriver documentation demonstrates navigation and saving a screenshot, while the Ruby API reference describes the output as a PNG of the viewport.
Recommended Free Tools
Choose the capture area
Current viewport
The basic driver call captures what is visible in the current browser viewport. It does not imply a full-page image of content below the fold.
#1 Best Overall
Full page, when supported
The current Ruby API documents save_screenshot(png_path, full_page: false). You can request a full-page capture with driver.save_screenshot('./full-page.png', full_page: true), but only where the installed Selenium/browser combination supports it. Otherwise Selenium may raise an unsupported-operation error. Check the documentation for your installed gem and browser rather than assuming this option works everywhere.
One element
To capture a particular element, locate it and call its screenshot method:
Rank #2
element = driver.find_element(css: '#main-content')
element.save_screenshot('./main-content.png')
Use a .png extension for element screenshots too. The Ruby API describes the saved screenshot as PNG data and warns when the filename extension is not .png.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutput path and cleanup
- Use a writable destination and create any parent directory before saving; the method opens the requested path for binary writing.
- Keep the filename extension as
.pngso it matches the data Selenium writes. - Keep
driver.quitin anensureblock so the browser session is closed if navigation or capture fails.
Common problems
- Unsupported full-page capture: Remove
full_page: trueto take a viewport screenshot, or check whether the exact browser and Selenium version support full-page capture. - File cannot be written: Choose a writable path and make sure its parent directory exists.
- Image extension warning: Change the screenshot filename to end in
.png; the API writes PNG data. - Screenshot is only part of the page: The ordinary driver screenshot is viewport-only. Use full-page mode only if supported by your combination, or capture a specific element when that is the desired scope.
Or skip the browser setup
If you need a screenshot without managing a local Selenium browser, ScreenshotNeo offers a single-request API. See the ScreenshotNeo documentation for request options.
Rank #3
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/ -o shot.webp
ScreenshotNeo accepts cookie banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step 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. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Create a free ScreenshotNeo account to start with 1,000 screenshots a month and no card.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Frequently Asked Questions
Does Selenium Ruby save screenshots as PNG?
Yes. The Ruby screenshot API writes PNG data; use a filename ending in .png.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Rank #4
Does save_screenshot capture the whole web page?
By default, it captures the current viewport. Full-page capture depends on support in the installed Selenium and browser combination.
Quick Recap
Best Value
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.




