-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from feelgood-interface/master
Improvements
- Loading branch information
Showing
42 changed files
with
2,807 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) | ||
|
||
**Selenium Screenshot :** | ||
**Selenium Screenshot:** | ||
|
||
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
@@ -10,17 +10,17 @@ | |
![Python package](https://github.com/sam4u3/Selenium_Screenshot/workflows/Python%20package/badge.svg) | ||
|
||
|
||
The Selenium Screenshot is used to clipped Html Element using Selenium Webdriver | ||
The Selenium Screenshot is used to clip Html pages and elements using Selenium. | ||
|
||
**Installation :** | ||
**Installation:** | ||
|
||
`pip install Selenium-Screenshot` | ||
|
||
This Package Support Python 3.6+ only | ||
This package supports Python 3.6+ only. | ||
|
||
**How to Use :** | ||
**How to Use:** | ||
|
||
**For Full Page ScreenShot :** | ||
**For Full Page Screenshot:** | ||
|
||
```python | ||
from Screenshot import Screenshot | ||
|
@@ -30,14 +30,14 @@ ob = Screenshot.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') | ||
img_url = ob.full_screenshot(driver, save_path=r'.', image_name='Myimage.png') | ||
print(img_url) | ||
driver.close() | ||
|
||
driver.quit() | ||
``` | ||
|
||
**For Html Element Clipping :** | ||
**For Html Element Clipping:** | ||
|
||
````python | ||
from Screenshot import Screenshot | ||
|
@@ -58,7 +58,7 @@ driver.quit() | |
|
||
```` | ||
|
||
**For Html Element Clipping with Hiding Element :** | ||
**For Html Element Clipping with Hiding Element:** | ||
|
||
````python | ||
from Screenshot import Screenshot | ||
|
@@ -68,8 +68,8 @@ ob = Screenshot.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') | ||
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'.', hide_elements=hide_elements, image_name='Myimage.png') | ||
print(img_url) | ||
driver.close() | ||
|
||
|
@@ -82,12 +82,12 @@ driver.quit() | |
- Screenshot can take only 10000 of height of website | ||
|
||
|
||
**Contact Information :** | ||
**Contact Information:** | ||
|
||
[Email:py.[email protected]](mailto::[email protected]) | ||
|
||
**Donation :** | ||
**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. | ||
If you have found my software to be of any use to you, do consider helping me pay my internet bills. This would encourage me to maintain and create more projects. | ||
|
||
<a href="https://www.paypal.me/sam4u3" target="_blank"><img src="https://raw.githubusercontent.com/aha999/DonateButtons/master/Paypal.png" alt="Donate via PayPal" title="Donate via PayPal" /></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...ite/test_files/687474703a2f2f466f7254686542616467652e636f6d2f696d616765732f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.