This package is used to Clipped Images of Html Elements of Selenium Webdriver
Project description
Slenium Screenshot :
The Selenium Screenshot is used to clipped Html Element using Selenium Webdriver
Installations :
pip install Selenium-Screenshot
This Package Supported for Python 3.*
How to Use :
For Full Page ScreenShot :
from Screenshot import Screenshot_Clipping
from selenium import webdriver
ob=Screenshot_Clipping.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'D:\Sayar Mendis\Python_Projects\Selenium\test', image_name='Myimage.png')
print(img_url)
driver.close()
driver.quit()
For Html Element Clipping :
from Screenshot import Screenshot_Clipping
from selenium import webdriver
ob=Screenshot_Clipping.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'D:\Sayar Mendis\Python_Projects\Selenium\test')
print(img_url)
driver.close()
driver.quit()
For Html Element Clipping with Hiding Element :
from Screenshot import Screenshot_Clipping
from selenium import webdriver
ob=Screenshot_Clipping.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'D:\Sayar Mendis\Python_Projects\Selenium\test', elements=Hide_elements, image_name='Myimage.png')
print(img_url)
driver.close()
driver.quit()
Contact Information :
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
Close
Hashes for Selenium-Screenshot-1.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cdd9bac9b9e3279d45bb4e0e6b47c4570e2a66ae6fa545ab4eb8d268b0a732 |
|
MD5 | 4b38cd498448ac6c95c3b187848baa94 |
|
BLAKE2b-256 | 88c56d85e59a6af5f4eae7e751e61d368780e4d5c9389826fc48429ee1065c14 |