Closed photorealisticbeaver closed 4 months ago
import puppeteer from 'puppeteer-core'
import ghostCursor from 'ghost-cursor'
(async () => {
const browser = await puppeteer.connect({
browserURL,
})
const [page] = await browser.pages()
const cursor = ghostCursor.createCursor(page)
await cursor.click(selector)
})();
perhaps try this ^ ?
I think the env variables is now PUPPETEER_SKIP_DOWNLOAD=1
.
As for puppeteer-core, it should work as well.
Starting on puppeteer 19, PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true seems to be ignored, so it would be quite handy to be able to use puppeteer-core with ghost-cursor