schickling / chromeless

🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.
https://chromeless.netlify.com
MIT License
13.25k stars 575 forks source link

Simulate mouse move #418

Open michalstocki opened 6 years ago

michalstocki commented 6 years ago

This is a Feature Proposal

Description

I need the option to perform a mouse move to be able to test the drag'n'drop feature. I suggest to add a new api metod mousemove that could be used with pixel coordinates and chaned with the existing mousedown and mouseup methods:

await chromeless
  .mousemove(100, 20)
  .mousedown(100, 20)
  .mousemove(200, 20, {steps: 50})
  .mouseup(200, 20);

I expect the behaviour of these methods to be similar to the one in puppeteer.

Similar or dependent issues:

Additional Data