OnetapInc / chromy

Chromy is a library for operating headless chrome. 🍺🍺🍺
MIT License
605 stars 41 forks source link

mouse interaction selector option #54

Open garris opened 6 years ago

garris commented 6 years ago

This is a requirement for many of my use-cases...

.mouseMoved(<selector>, [options])

any chance of getting this?

garris commented 6 years ago

I solved my immediate need with this...

  chromyChain
    .rect(<selector>)
    .result(function (rect) {
      chromyChain.mouseMoved(rect.left, rect.top)
    });

But I highly recommend enabling this pattern for all the "mouse" methods... .mouseMoved(<selector>, [options])

Thanks.

dotneet commented 6 years ago

exactly, that's useful. I'll add these mouse methods.