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/blob/master/Screenshot/Screenshot_Clipping.py"
driver.get(url)
img_url=ob.Full_Scrrenshot(driver,r'C:\Users\Admin\Downloads','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'C:\Users\Admin\Downloads')
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://www.amazon.com/s/ref=sr_nr_n_0?fst=as%3Aoff&rh=n%3A16225007011%2Cn%3A13896617011%2Cn%3A565098%2Cn%3A13896603011&bbn=16225007011&ie=UTF8&qid=1545303779&rnid=565098&ajr=3"
driver.get(url)
Hide_elements=['id=leftNavContainer']
img_url=ob.Full_Scrrenshot(driver,r'C:\Users\Admin\Downloads',Hide_elements,'Myimage.png')
print(img_url)
# print(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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef15791105fa642726e5aa7fefb39158d82bdcd0c03acd1be3bbeceb0a02b5f7 |
|
MD5 | 199d22b21984166fa869c487de074232 |
|
BLAKE2b-256 | ec00ec9670ceee35e91ec291e4c4ab072ad22bc5cf477b2928acd8d46b1a8692 |