-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to perform drag and drop with Selenium (python) #8003
Comments
Dupe of #7782 ? |
Looking at this, all browsers don't seem to do the right thing yet all are passing the webdriver test |
It appears that we have a drag and drop test that is working properly... https://github.com/SeleniumHQ/selenium/blob/master/py/test/selenium/webdriver/common/interactions_tests.py so need to see what is different between this scenario and what we have in our tests |
You can execute this script as the fast fix at the moment (works well for me on both Chrome and Firefox).
I saved this one as drag_and_drop.js file in scripts folder of my project's directory.
One more thing: this script accepts elements found by CSS selectors only (because it's a JQuery script)! |
A new test was added for the spec that highlights this issue. Hopefully Google and Mozilla will schedule this to be fixed |
Closing as this issue as it needs to be fix in each of the drivers. |
@AutomatedTester Hi, may I ask there's any update? Is this issued comfirmed an issued of the drivers not selenium (thus we have to wait for fixed from google and mozilla)? |
You can try to use a workaround I've mentioned above at the moment. |
🐛 Bug Report
Hi there,
For test automation, I can't perform drag and drop or click and hold actions with Selenium in python on a private web app. No drag actions seems to be performed at all. I can't share the private app but I reproduce my bug on the following demo website :
http://the-internet.herokuapp.com/drag_and_drop
To Reproduce
Below is my basic piece of code for drag and drop / click and hold
Detailed steps to reproduce the behavior: Juste reuse the code with the provided demo website.
Expected behavior
Block A and Block B should be switched.
Test script or set of commands reproducing this issue
Please, see the code above
Environment
OS:
Browser:
Browser version:
Browser Driver version:
Language Bindings version:
Selenium :
Thanks for your help :)
The text was updated successfully, but these errors were encountered: