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

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

Uploaded Source

Built Distribution

Selenium_Screenshot-1.5.0-py2-none-any.whl (3.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: Selenium-Screenshot-1.5.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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for Selenium-Screenshot-1.5.0.tar.gz
Algorithm Hash digest
SHA256 21b4c934c534fc8d8a2e619fd781b5b84ca50e833668211a4ddfcc1ba80a7f02
MD5 58db4e8458072543d36487f13cb1630e
BLAKE2b-256 fc9cb59ead007810f9f245f5b65dea047a927959a2ccd7c010989d785039e858

See more details on using hashes here.

File details

Details for the file Selenium_Screenshot-1.5.0-py2-none-any.whl.

File metadata

  • Download URL: Selenium_Screenshot-1.5.0-py2-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for Selenium_Screenshot-1.5.0-py2-none-any.whl
Algorithm Hash digest
SHA256 4541b4d26f263bbb34a258dc0e02f2ac5c780cc08fb2f7e5de69e7b2e2aa801e
MD5 b081a6eec793a287ea63f8aba69932d7
BLAKE2b-256 47d65967c997d449919ee4a7cfe2d8e015436b7b0bd801639481772bc1733986

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