deno-puppeteer
deno-puppeteer copied to clipboard
A port of puppeteer running on Deno
``` import puppeteer from "https://deno.land/x/[email protected]/mod.ts"; const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto("https://example.com"); await page.screenshot({ path: "example.png" }); await browser.close(); ``` nothing happens. I don't see...
Just tried to run the example code from README: ```bash PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected]/install.ts ``` `example.js` / `example.ts`: ```js import puppeteer from "https://deno.land/x/[email protected]/mod.ts"; const browser = await puppeteer.launch();...
``` error: Uncaught (in promise) PermissionDenied: Permission denied (os error 13) this.proc = Deno.run({ ^ at Object.opSync (deno:core/01_core.js:172:12) at opRun (deno:runtime/js/40_process.js:28:17) at Object.run (deno:runtime/js/40_process.js:111:17) at BrowserRunner.start (https://deno.land/x/[email protected]/src/deno/BrowserRunner.ts:63:22) at ChromeLauncher.launch (https://deno.land/x/[email protected]/src/deno/Launcher.ts:108:12)...
On a M1 Mac the install script currently downloads a Intel *(x86_64)* build of chromium while there are arm builds available nowadays. It would be nice if the install script...
When the following code is ran, a WebSocket connection to the browser is established. ``` const browser = await puppeteer.launch({pipe: true}); ``` But according to [puppeteer.launch](https://github.com/puppeteer/puppeteer/blob/v14.1.1/docs/api.md#puppeteerlaunchoptions), a pipe should be...
I get this ```sh $ PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected]/install.ts Check https://deno.land/x/[email protected]/install.ts error: TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'number'. this.proc.kill("SIGKILL"); ```...
This implements the second solution that @lucacasonato suggested in [#9](https://github.com/lucacasonato/deno-puppeteer/issues/9#issuecomment-753610585). It will install the latest Chromium if no `executablePath` is given to `puppeteer.launch`. It adds an uninstall script so that...
The return value of $eval and $$eval should only be wrapped in an ElementHandle when they are of type Element. However, the TypeScript return types of these functions indicate that...
Co-authored-by: Casey Morar