Takes a screenshot of every element on a site
Project description
Takes a screenshot of every element on a site
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-screenshots-all-elements
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
from a_selenium_screenshots_all_elements import get_screenshots_from_all_elements
if __name__ == "__main__":
folderchromedriver = "f:\\seleniumdriver3"
path = download_undetected_chromedriver(
folder_path_for_exe=folderchromedriver, undetected=True
)
driver = uc.Chrome(driver_executable_path=path)
driver.get(r"https://github.com/hansalemaos/a_cv2_easy_resize")
get_screenshots_from_all_elements(driver, saveinfolder='f:\\testscreensht', cutinfos=80) # cutinfos = max letters in one line
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file a_selenium_screenshots_all_elements-0.10.tar.gz
.
File metadata
- Download URL: a_selenium_screenshots_all_elements-0.10.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702e503b901a02135b838ea888696e513b5cb7f310fb59fab9d3d974f2408468 |
|
MD5 | bed825cb98f336a91bbecf9853fdf787 |
|
BLAKE2b-256 | ffbe23bab9374c26abe2fb72121958f33e3826cae0b889f864a27edab4e5a762 |
File details
Details for the file a_selenium_screenshots_all_elements-0.10-py3-none-any.whl
.
File metadata
- Download URL: a_selenium_screenshots_all_elements-0.10-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3cdf4d9d42986e530b28fc77cbf16935108125b7cf94f378a35113d0957eaa0 |
|
MD5 | 233b7a6d2147ff58ba927ef9e68241bb |
|
BLAKE2b-256 | 30b72a7f69945c208a36cb9ac4e879c8faa77c5af94ca7057d0272b47688cdeb |