Xetera / ghost-cursor

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

elem.remoteObject is not a function #83

Closed lelly8484 closed 1 year ago

lelly8484 commented 1 year ago

Keep getting this for line host-cursor\lib\spoof.js:475:61)

var elements = await page.$x('//*[@id=\"email[objectobject]__input\"]'); await cursor.click(elements[0]);

Niek commented 1 year ago

What version of Puppeteer are you using?

lelly8484 commented 1 year ago

Oh i updated and it worked

clouedoc commented 1 year ago

I've got the same issue and upgrading puppeteer didn't work. I also needed to upgrade puppeteer-core, which was not present in my package.json.

$ npm i puppeteer
$ npm i puppeteer-core