You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{join}from"https://deno.land/[email protected]/path/mod.ts";import{DenoDir}from"https://deno.land/x/[email protected]/deno_dir.ts";importpuppeteer,{BrowserFetcher}from"npm:[email protected]";import{PUPPETEER_REVISIONS}from"npm:[email protected]/internal/revisions.js";// Make sure Chromium is downloaded for use with PuppeteerconstdenoDir=newDenoDir(undefined,true);constfetcher=newBrowserFetcher({path: join(denoDir.root,"puppeteer")});constrevisions=fetcher.localRevisions();constrevision=PUPPETEER_REVISIONS["chromium"];letexecutablePath: string;if(!revisions.includes(revision)){console.log(`Downloading Chromium ${revision}...`);constr=awaitfetcher.download(revision);if(!r)thrownewError("Failed to download Chromium");executablePath=r.executablePath;}else{executablePath=fetcher.revisionInfo(revision).executablePath;}// Start puppeteerconstbrowser=awaitpuppeteer.launch({headless: "new", executablePath });constpage=awaitbrowser.newPage();awaitpage.goto("https://example.com");awaitpage.screenshot({path: "example.png"});awaitbrowser.close();
This commit adds support for "upgrade" events in "node:http"
"ClientRequest". Currently only "Websocket" upgrades are
handled. Thanks to this change package like "npm:puppeteer"
and "npm:discord" should work.
Closes#18913Closes#17847
This commit adds support for "upgrade" events in "node:http"
"ClientRequest". Currently only "Websocket" upgrades are
handled. Thanks to this change package like "npm:puppeteer"
and "npm:discord" should work.
Closes#18913Closes#17847
This is the output:
No error should be thrown. It seems likely that this is related to outbound WebSockets in node compat. Do we even support those?
The text was updated successfully, but these errors were encountered: