Xetera / ghost-cursor

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

How to perform `press and hold` actions #95

Closed icesmartjuan closed 1 year ago

icesmartjuan commented 1 year ago

Hi expert,

It's great to have such lib, would like to know how to perform press and hold actions ? Thanks normally, we could do it via following code, but it seems not work in cursor. await page.click (selector, {delay: 10000});

Niek commented 1 year ago

You can simply .move() to a specific selector, then use the await page.click(selector, {delay: 10000}) click command as usual.