Xetera / ghost-cursor

🖱️ Generate human-like mouse movements with puppeteer or on any 2D plane
MIT License
1.03k stars 120 forks source link

Trying to use moveDelay on the click event #105

Closed jameshooddisc closed 4 months ago

jameshooddisc commented 1 year ago

Hi,

I'm trying to set different values to moveDelay option for the click event, and always getting same behaviour.

Tried with {moveDelay: 1500000} and acts as fast or slow as if i do with {moveDelay: 1}.

This value is supposed to be the time in ms until the promise on the await element.click() will be resolved, meaning the time that code will be stopped there after doing the click. Is this correct?

I'm running the version 1.1.18.

Thanks

bvandercar-vt commented 4 months ago

What you want is moveSpeed, not moveDelay.

Per the docs, moveDelay is the delay after a click or move occurs, ie a delay after the action, and before the next action.

You can also set hesitate if you want to hover before clicking.