alibaba / macaca

Automation solution for multi-platform. 多端自动化解决方案
https://macacajs.github.io
MIT License
3.17k stars 419 forks source link

Trigger MouseEvent to achieve Drag and Drop in web app #918

Open mpreethi90 opened 5 years ago

mpreethi90 commented 5 years ago
paradite commented 5 years ago

Have you tried using dom-event-simulate? mousedown, mousemove and mouseup should be enough. API docs:

mpreethi90 commented 5 years ago

@paradite I tried , but got error in using dom-event-simulate.

My requirement is to do drag/drop in middle of macaca browser testing.

Here is the error I got -

Screenshot 2019-04-25 at 10 05 21
paradite commented 5 years ago

let me try it on my end, to see if there is any issues with using dom-event-simulate with macaca and how to set them up.