Skip to main content

This package is used to Clipped Images of Html Elements of Selenium Webdriver

Project description

Slenium Screenshot :

License: MIT Downloads Python 3.6 PyPI version Python package

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'.', 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'.')
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'.', 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 :

Email: sayarmendis26@gmail.com

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 :)

Donate via Instamojo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Selenium-Screenshot-1.7.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file Selenium-Screenshot-1.7.0.tar.gz.

File metadata

  • Download URL: Selenium-Screenshot-1.7.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for Selenium-Screenshot-1.7.0.tar.gz
Algorithm Hash digest
SHA256 9d91e9e57b1140d813ca89e53b839d50cc1ddb6fd074612b96df5433835afea6
MD5 6404529622c04ffa55b90dc2a47c277c
BLAKE2b-256 51d03ab7e52195f7623964e36fa0a54a3bd8fd169ad352e5262758845af5a92e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page