Skip to main content

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 :

Email: sayarmendis26@gmail.com

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.4.0.tar.gz (4.3 kB view details)

Uploaded Source

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

Hashes for Selenium-Screenshot-1.4.0.tar.gz
Algorithm Hash digest
SHA256 98cdd9bac9b9e3279d45bb4e0e6b47c4570e2a66ae6fa545ab4eb8d268b0a732
MD5 4b38cd498448ac6c95c3b187848baa94
BLAKE2b-256 88c56d85e59a6af5f4eae7e751e61d368780e4d5c9389826fc48429ee1065c14

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