Skip to main content

Providing drag and drop functionality in selenium python.

Project description

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

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

dd_selenium-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

dd_selenium-0.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file dd_selenium-0.0.4.tar.gz.

File metadata

  • Download URL: dd_selenium-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dd_selenium-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4a32e652c46bd031326c942e8e453e607e60fe8e4a0bb9036a6de7ce059c8bfc
MD5 481f07e3edf07eb62675d3c62c05ffcf
BLAKE2b-256 946d6187c89790e8fd3cbdeac60eff996f058ef6366faa0d2bbd4b23ef1ef5f9

See more details on using hashes here.

File details

Details for the file dd_selenium-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dd_selenium-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for dd_selenium-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00f824c48a7dc56a62805a5d1c62130ad3b3c448e4d86b57db43fba7d0e711e5
MD5 9a5e8e6019a6c48d8016b0545d944f62
BLAKE2b-256 a1883e0531f4c6f9a73614b0409fdcfbdb31e59b337d98693191c1407936f84a

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