Skip to main content

Helpful tools for Selenium on Python

Reason this release was yanked:

wrong wheel build

Project description

Selenium Tools

About package

There is a known drag & drop bug that reproduces in frameworks that use webdriver to send commands to browser. This bug is a webdriver's issue and it's unknown when it's going to be fixed (or if it's going to be fixed at all). Current solution uses JavaScript code to simulate drag & drop action on web page. It works in most of the cases when it doesn't work in Selenium.

You may find bug description and current workaround here.

Thanks to druska for his native js drag and drop helper.

Current package is called Selenium Tools for a reason - it will contain more features in future. Feel free to contribute.

Installation

pip install seletools

Drag & Drop

from seletools.actions import drag_and_drop

driver = webdriver.Chrome()
source = driver.find_element(By.CSS_SELECTOR, "...")
target = driver.find_element(By.CSS_SELECTOR, "...")
drag_and_drop(driver, source, target)

Important

Drag & Drop action works with elements found by CSS selectors only!

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

seletools-1.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

seletools-1.0.1-py3-none-any.whl (3.1 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