phantombuster / nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
https://nickjs.org
ISC License
500 stars 48 forks source link

Possible support for mouse simulations? #32

Closed jprrabanal closed 6 years ago

jprrabanal commented 6 years ago

Is there a possible future support for mouse simulations?

paps commented 6 years ago

Yes in the future we might support mouse events, more than just the tab.click() method anyway. I don't have an ETA though, sorry.

In the meantime you can go down an abstraction layer and make direct calls to the dispatchMouseEvent DevTools method, like so: await tab.driver.client.Input.dispatchMouseEvent({ ... options ... }). Documentation is here: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent