schickling / chromeless

🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.

Home Page:https://chromeless.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulate mouse move

michalstocki opened this issue · comments

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

  • Chromeless Version you're using:
  • Operating System:
  • Stack Trace:
  • Error messages: