Skip to content

Drag events are not emitted during actions #1488

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

Open
AutomatedTester opened this issue Mar 24, 2020 · 12 comments
Open

Drag events are not emitted during actions #1488

AutomatedTester opened this issue Mar 24, 2020 · 12 comments
Assignees

Comments

@AutomatedTester
Copy link
Contributor

In SeleniumHQ/selenium#8003 we can see that drag events don't get emitted. These events are used for elements that have a draggable attribute

@AutomatedTester AutomatedTester self-assigned this Mar 24, 2020
@AutomatedTester
Copy link
Contributor Author

added test in web-platform-tests/wpt#22426

@karpagapriya-ramakrishnan
Copy link

karpagapriya-ramakrishnan commented Oct 6, 2021

@AutomatedTester Is there any update on this issue? Currently facing similar issue, where trying to drag and drop to the canvas using python actions chains but its not working.

Trying to drag source_1 to div class=react-flow__pane.

image
image

Chrome version:
Version 91.0.4472.114 (Official Build) (64-bit)

@satya081
Copy link

Any update on this bug?

@bormando
Copy link

Any update on this bug?

It seems to be dead (no changes for 2 years). This issue exists a lot longer than it was reported here. It's ridiculous.

@MattKeenum
Copy link

Any update on this?

@Vchenhailong
Copy link

Vchenhailong commented Aug 1, 2022

I've tested one more time.

offsetissue.mov

ActionChains(self.driver).drag_and_drop_by_offset(source_element, xoffset, yoffset).release().perform()
In fact, the cursor (location of mouse) have impact on method offset().

ref-link: webdriverio/webdriverio#6596

@mkomarenko
Copy link

mkomarenko commented Dec 17, 2022

Any update on that issues?

@cylimaki
Copy link

I am also having this issue I have a table row that had the draggable prop on it and I am not able to drag and drop elements.

@nekdan
Copy link

nekdan commented Jan 5, 2023

Hi I have a similar problem in selenium 4.7.2 + python 3.11 and ChromeDriver 108.0.5359.71. I check "Demo 1" on the website https://www.lambdatest.com/selenium-playground/drag-and-drop-demo
As I understand the problem persists for many years, is there any actual solution?

@apupier
Copy link
Contributor

apupier commented Jan 20, 2023

@AutomatedTester You mentioned that you provided a test #1488 (comment) but the problem still happens.

Can you clarify what is the expected status? is it fixed in some versions? If not fixed, do you have some ideas/pointers to explain in which part of codebase it should be done?

EDIT: is it that you provide a test on the WebDriver specification but each webdriver implementors need to implement the feature on their side? For instance, this issue for chrome webdriver https://bugs.chromium.org/p/chromedriver/issues/detail?id=2695 ?

@whimboo
Copy link
Contributor

whimboo commented Feb 6, 2023

For geckodriver this is most likely mozilla/geckodriver#1450.

@bonjonbovi87
Copy link

Add a duration to your drag. As per the specs, pointerMove has a duration parameter. Assign this 1 or 2 seconds, as some webapps won't pick up on your mouse cursor zooming at light speed across the page

https://github.com/jlipps/simple-wd-spec#perform-actions

I got this working using WebdriverIO by also adding in human-like pauses with the clicks and moving to the centre of the element: webdriverio/webdriverio#8022 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests