Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use a loop that captures the current results, clicks the site’s next-page control, waits for an observable change, and repeats until the site indicates there are no more pages. The essential detail is synchronization: a click can finish before JavaScript has updated the results, so wait for a page marker, URL, result identifier, or replaced results element—not merely for the click to return.

Choose what each screenshot should contain

Selenium can capture the current browsing context or a specific element. Use a driver screenshot when you want the visible page, including surrounding navigation and status information. Use a results-element screenshot when you need only the search results. The generic screenshot APIs do not promise a uniformly supported, arbitrarily tall full-document image across browsers; if that is required, verify the browser and driver’s support.

  • Current view: driver.save_screenshot(path) saves a screenshot of the current browsing context.
  • Results region: find the results element and call its screenshot(path) method.

For consistent dimensions, set the browser window size before starting the loop and keep it unchanged. Selenium’s screenshot and window-interaction APIs are documented in the WebDriver windows and interactions documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build a reliable pagination loop in Python

Install Selenium with python -m pip install selenium, configure a browser and its WebDriver, and inspect the target site to identify its results selector, next control, and final-page signal. The selectors below are examples only; they are not universal locators. This pattern captures the whole current browsing context as a PNG for each page.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
  1. Wait until the current results are visible.
  2. Save the screenshot with a unique, zero-padded page number.
  3. Check the site’s terminal condition before clicking next.
  4. Click the next control and wait for a meaningful state change.
  5. Repeat, reacquiring elements after every transition.

Example implementation, assuming the results container is replaced after each page transition:

from pathlib import Path

from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait

URL = "https://example.com/search?q=selenium"
RESULTS = (By.CSS_SELECTOR, ".results")
NEXT = (By.CSS_SELECTOR, "a.next")

Path("screenshots").mkdir(exist_ok=True)
driver = webdriver.Chrome()
wait = WebDriverWait(driver, 10)

try:
    driver.set_window_size(1440, 1000)
    driver.get(URL)
    page_number = 1
    max_pages = 100  # Defensive bound; choose a suitable limit for your task.

    while page_number <= max_pages:
        results = wait.until(EC.visibility_of_element_located(RESULTS))
        driver.save_screenshot(f"screenshots/results-{page_number:03}.png")

        next_button = driver.find_element(*NEXT)
        aria_disabled = next_button.get_attribute("aria-disabled")
        if not next_button.is_enabled() or aria_disabled == "true":
            break

        next_button.click()
        wait.until(EC.staleness_of(results))
        page_number += 1
    else:
        raise RuntimeError(f"Stopped at defensive limit of {max_pages} pages")
finally:
    driver.quit()

The loop checks both Selenium’s enabled state and an aria-disabled value. Replace this with the target site’s actual last-page condition: some sites disable the next button, some expose a current-page label, and others change the URL or result content. An enabled next button is not proof that another page exists, and some interfaces do not replace the results container after a click.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

Wait for the change your site actually makes

EC.staleness_of(results) is appropriate only when pagination removes or replaces that element. For in-place updates, capture the current page marker or a stable result identifier before clicking, then wait until its value changes. For URL-driven pagination, wait for the URL to change. Selenium’s waiting strategies explain why page readiness alone does not guarantee that JavaScript-rendered content has finished updating, and provide explicit expected conditions for waiting on observable states.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prefer explicit waits tied to the state you need. Selenium warns that mixing implicit and explicit waits can produce unpredictable wait times. Dynamic-page timing races are a common source of flaky automation.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Capture only the results element

To save just the result region, replace the driver screenshot line with:

results.screenshot(f"screenshots/results-{page_number:03}.png")

Keep locating the results element inside the loop. After a page transition, Selenium may no longer be able to use references to elements from the old DOM.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Adapt the workflow to the page structure

Results inside an iframe

Switch into the relevant frame before locating the results or pagination controls. Selenium starts in the top-level document; elements inside an iframe are not available there. For a known frame selector:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
wait.until(EC.frame_to_be_available_and_switch_to_it(
    (By.CSS_SELECTOR, "iframe.search-frame")
))

After switching, use selectors that belong to the frame’s document. Switch back with driver.switch_to.default_content() if later work needs the top-level page. See Selenium’s frame interaction documentation.

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

Numbered pagination or infinite scroll

For numbered links, click the next page number or the site’s next-page control and wait for its page indicator or results to change. For infinite scroll, the interaction is different: scroll to load more results and wait for the result count or last item to change before capturing. Do not assume a next-button loop applies to either interface without checking how it advances.

One tall image versus one image per page state

The loop above saves one screenshot for each paginated state. That is different from making one tall image of the full document. Selenium’s generic screenshot methods capture the current browsing context or a particular element; the Firefox-specific Python API documents a full-document screenshot method, but availability is driver-specific. Confirm support for your chosen browser and driver rather than assuming save_screenshot captures an arbitrarily tall page.

Troubleshoot missed pages and failed captures

  • The screenshot shows old results: the click returned before the application updated. Wait for a page number, URL, result identifier, or other state that changes on this site.
  • The wait for staleness times out: the site may update results in place instead of replacing the container. Wait for a changed marker or result identifier instead.
  • A stored element reference raises a stale-element error: the DOM was rebuilt. Re-find the results element and next control after the transition.
  • The next control cannot be clicked: check whether it is displayed, enabled, and unobscured. A hidden control, overlay, or consent prompt may prevent interaction; inspect the current page before retrying.
  • No results or controls can be located: check whether they are in an iframe and switch into it. Also verify the selectors against the live DOM.
  • The loop never ends: use the site’s real terminal signal and retain a defensive maximum page count. If a wait times out, inspect the current URL, screenshot, and DOM state before revising the condition; do not blindly retry clicks.
  • A challenge or access limit appears: treat consent, authentication, bot checks, and usage limits as distinct page states. Follow the site’s permitted access and terms rather than capturing the challenge as if it were a result page.

Or skip the browser setup

If you need screenshots but do not need Selenium-driven interaction, ScreenshotNeo provides a website screenshot API and MCP server. Its one-request API can return an image or PDF:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/search?q=selenium -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo accepts cookie or consent 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 identify the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. A screenshot API captures a requested URL; it does not replace Selenium when your workflow must click through interactive pagination and capture each resulting state.

Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.80
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

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.