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

Scr=Screenshot_Clipping.Screenshot()
driver = webdriver.Chrome()
url = "https://github.com/sam4u3/Selenium_Screenshot"
driver.get(url)
img_url=Scr.Full_Scrrenshot(driver,r'E:\Sayar_python\Selenium\test')
print(img_url)

driver.close()

driver.quit()

For Html Element Clipping :

from Screenshot import Screenshot_Clipping
from selenium import webdriver

Scr=Screenshot_Clipping.Screenshot()
driver = webdriver.Chrome()
url = "https://github.com/sam4u3/Selenium_Screenshot"
driver.get(url)
element=driver.find_element_by_class_name('pagehead-actions')
img_url=Scr.Get_element(driver,element,r'E:\Sayar_python\Selenium\test')
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.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

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