Xetera / ghost-cursor

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

Coordinates #108

Closed scrapenetwork closed 11 months ago

scrapenetwork commented 11 months ago

How to click using just coordinates & not any selectors (x,y)

Niek commented 11 months ago

Use moveTo and manually toggle a mouse click: https://github.com/Xetera/ghost-cursor/blob/3501c9da656e91bcef23a0d3d11d629b45c77060/src/spoof.ts#L391-L395

scrapenetwork commented 11 months ago

Trying to use x and y

Would greatly appreciate maybe an example would be easier for my case, as im new to node

Use moveTo and manually toggle a mouse click:

https://github.com/Xetera/ghost-cursor/blob/3501c9da656e91bcef23a0d3d11d629b45c77060/src/spoof.ts#L391-L395