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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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