Xetera / ghost-cursor

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

Usage of ghost-cursor with chrome-extension #98

Closed montovaneli closed 1 year ago

montovaneli commented 1 year ago

Hello!

Is there any way to use the ghost-cursor in a Chrome extension? I tried using the createCursor() method, but it requires a Puppeteer page. My goal is to receive a URL via WebSocket, open it in a new tab, and simulate a human click on a button in that new tab.

Xetera commented 1 year ago

You can't control the exact mouse movements in client side Javascript without CDP or some kind of browser automation with an interface for it