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
File details
Details for the file Selenium-Screenshot-1.4.0.tar.gz
.
File metadata
- Download URL: Selenium-Screenshot-1.4.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cdd9bac9b9e3279d45bb4e0e6b47c4570e2a66ae6fa545ab4eb8d268b0a732 |
|
MD5 | 4b38cd498448ac6c95c3b187848baa94 |
|
BLAKE2b-256 | 88c56d85e59a6af5f4eae7e751e61d368780e4d5c9389826fc48429ee1065c14 |