ghost-cursor icon indicating copy to clipboard operation
ghost-cursor copied to clipboard

Usage of puppeteer-core with ghost-cursor

Open photorealisticbeaver opened this issue 2 years ago • 1 comments

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

photorealisticbeaver avatar May 01 '23 23:05 photorealisticbeaver

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 ^ ?

alvinlys avatar Feb 06 '24 12:02 alvinlys

I think the env variables is now PUPPETEER_SKIP_DOWNLOAD=1.

As for puppeteer-core, it should work as well.

Niek avatar May 08 '24 18:05 Niek