Xetera / ghost-cursor

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

clickCount support #20

Closed NikolaiT closed 3 years ago

NikolaiT commented 3 years ago

hey guys, thanks for the awesome module.

Please support click optinos like that:

  const cursor = createCursor(page);

  await cursor.click('.someClass', {clickCount: 3})

Thanks

Xetera commented 3 years ago

Seems like something you can just do in a for loop, is there a reason why this is necessary?

Niek commented 3 years ago

Yeah, this seems a bit unnecessary to me.

NikolaiT commented 3 years ago

Not really necessary, but would remain compatible with the interface of pptr. Maybe there are more clickoptions?