Xetera / ghost-cursor

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

How to avoid sometimes clicking on adjacent elements with cursor.click? #120

Open cage1618 opened 9 months ago

cage1618 commented 9 months ago

I speculate that perhaps the clicking occurs before the mouse movement has completely stopped, but even when I tried adding a delay before the click, the issue still occurred.

Niek commented 6 months ago

Do you have a reproducible test page for this?

rezovax commented 5 months ago

the problem is relevant

TheGP commented 4 months ago

Yeah it happens actually, I will speculate it is because of the element's box, we need to make a test page for it for sure, for me it happens on complicated websites and pretty rarely so I wasn't able to catch it yet.

Biogasbottle commented 1 month ago

There are often sticky components or small windows that cover the element to click. may you expose a parameter to specify the click position within the element?

I found an option there: paddingPercentage, it works for me.