This package is used to Clipped Images of Html Elements of Selenium Webdriver
Project description
Selenium Screenshot :
The Selenium Screenshot is used to clipped Html Element using Selenium Webdriver
Installation :
pip install Selenium-Screenshot
This Package Support Python 3.6+ only
How to Use :
For Full Page ScreenShot :
from Screenshot import Screenshot
from selenium import webdriver
ob = Screenshot.Screenshot()
driver = webdriver.Chrome()
url = "https://github.com/sam4u3/Selenium_Screenshot/tree/master/test"
driver.get(url)
img_url = ob.full_Screenshot(driver, save_path=r'.', image_name='Myimage.png')
print(img_url)
driver.close()
driver.quit()
For Html Element Clipping :
from Screenshot import Screenshot
from selenium import webdriver
ob = Screenshot.Screenshot()
driver = webdriver.Chrome()
url = "https://github.com/sam4u3/Selenium_Screenshot/blob/master/Screenshot/Screenshot_Clipping.py"
driver.get(url)
element = driver.find_element_by_class_name('signup-prompt')
img_url = ob.get_element(driver, element, r'.')
print(img_url)
driver.close()
driver.quit()
For Html Element Clipping with Hiding Element :
from Screenshot import Screenshot
from selenium import webdriver
ob = Screenshot.Screenshot()
driver = webdriver.Chrome()
url = "https://github.com/sam4u3"
driver.get(url)
Hide_elements = ['class=avatar width-full height-full avatar-before-user-status'] # Use full class name
img_url = ob.full_Screenshot(driver, save_path=r'.', elements=Hide_elements, image_name='Myimage.png')
print(img_url)
driver.close()
driver.quit()
Limitation:
- Screenshot can take only 10000 of height of website
Contact Information :
Donation :
If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares.
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 Selenium-Screenshot-2.0.0.tar.gz
.
File metadata
- Download URL: Selenium-Screenshot-2.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10774b247b6141e211f4bae9cf65c10e2ee924bfb9c2b00022de332c14025dca |
|
MD5 | 7f4ec2a51bc566a56407a18250be717a |
|
BLAKE2b-256 | e2178c7c5af9e08069cefabfea5feafa1dfb3ae76a8f5f52396e0be1873363d2 |
File details
Details for the file Selenium_Screenshot-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: Selenium_Screenshot-2.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db607218a3cbd802f6305f62b191e6eb6000380b37e80e00018133c69304fd08 |
|
MD5 | 33aec8dbaabafcfeb0266630c6e2e75d |
|
BLAKE2b-256 | 8b4b9395ec7b202a6d0f003bcfa626232554671c65d6a560c9ee3c48fa6f62b3 |