Providing drag and drop functionality in selenium python
This is a basic package which provides functionality of drag and drop in python using javascript. It is compatible with youtube, instagram and most of other websites which require drag and drop for pasting/uploading a file.
How to use?
To use this package you need to first install it using pip, type:
pip install dd-selenium
After it's done navigate back to your program and type:
import dd_selenium
Now for drag and drop you need to use a function from the package, type:
dd_selenium.dds(drop_target, path)
Replace 'drop_target' with the div you want to drag and drop in and replace 'path' with the file path on your pc.
Example:
import dd_selenium
path = driver.findElement(By.PATH(""));
dd_selenium.dds(path, "C:/abc.file")
Thanks for checking out. Suggest changes at doneatease@gmail.com
Metadata
Release files for dd-selenium 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dd_selenium-0.0.4.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dd_selenium-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / dd_selenium-0.0.4.tar.gz
| Download URL | dd_selenium-0.0.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a32e652c46bd031326c942e8e453e607e60fe8e4a0bb9036a6de7ce059c8bfc
|
|
BLAKE2b-256 checksum How to use checksums |
946d6187c89790e8fd3cbdeac60eff996f058ef6366faa0d2bbd4b23ef1ef5f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / dd_selenium-0.0.4-py3-none-any.whl
| Download URL | dd_selenium-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00f824c48a7dc56a62805a5d1c62130ad3b3c448e4d86b57db43fba7d0e711e5
|
|
BLAKE2b-256 checksum How to use checksums |
a1883e0531f4c6f9a73614b0409fdcfbdb31e59b337d98693191c1407936f84a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|