Skip to content

Triggering drag and drop programmatically #1240

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
Srijan619 opened this issue Apr 13, 2024 · 2 comments
Open

Triggering drag and drop programmatically #1240

Srijan619 opened this issue Apr 13, 2024 · 2 comments

Comments

@Srijan619
Copy link

Is there any good example on how to properly trigger drag and drop programmatically using console? Due to technical limitations of our end to end testing environment, I am thinking of injecting JavaScript with custom events that would actually trigger drag and drop event... A good example or code snippet would be nice

@annesof
Copy link

annesof commented Mar 25, 2025

Hi, have you found how to do this ? Thx

@Srijan619
Copy link
Author

Hi,

Yes with alot of struggling and tracking down the internal behavior of the library, yes I was able to dispatch drag and drop through JS events... I could send a snippet of how I managed to do that, but depending on which version of library you are using, it might/might not work if internal APIs workflow has changed.

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

No branches or pull requests

2 participants