Comments (3)
I think you might be able to just
puppeteer.launch({
args: ["--headless=new"],
});
Launch options also have the headless
property though, not sure if that will interfere with this.
from deno-puppeteer.
This fork is pegged against a specific version of Chrome, so would be great to see it refreshed so that would work.
Looks like this is just a one-time proof of concept though.
from deno-puppeteer.
You can launch a specific Chromium binary with the executablePath
option in launch
, though only the included version is officially supported so this might not work.
You can download a specific version like this:
const fetcher = puppeteer.createBrowserFetcher({
product: "chrome",
});
let revisionInfo = fetcher.revisionInfo(PUPPETEER_REVISIONS.chromium);
if (!revisionInfo.local) {
revisionInfo = await fetcher.download(PUPPETEER_REVISIONS.chromium);
}
console.log(revisionInfo.executablePath);
from deno-puppeteer.
Related Issues (20)
- Question: what is the strategy of keeping this fork repo in sync with the forked repo? HOT 3
- Adding `{headless:false}` to readme examples when using Chrome makes them hang for 30 seconds and then throw a `TimeoutError` (browser doesn't launch) HOT 2
- How to use it with browserless.io? HOT 2
- Error when saving output of `page.pdf` into variable
- getting PermissionDenied: 'Deno.makeTempDir' is not allowed in this context HOT 8
- Error: Could not find browser revision XXX. Run "PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@VERSION/install.ts" to download a supported browser binary. HOT 6
- TypeError: reader is not async iterable at getReadableStreamAsUint8Array HOT 4
- `Deno.core.runMicrotasks()` is not supported in this environment HOT 2
- Buffer is not defined HOT 5
- `deno check` errors out saying `"data" is unexpectedly null for "https://esm.sh/v111/node.ns.d.ts"` HOT 1
- Question: why is browser.close() crasching when using browserless.io HOT 2
- Can't build docker image. It hangs. Package is not usable HOT 4
- NetworkError: failed to connect to WebSocket: Invalid status code HOT 3
- Update docs to detail actual required permissions
- Non try/catchable TimeoutError HOT 3
- cannot connect to remove browser using wss
- Won't run on an M2 MacBook Air HOT 1
- Issue with running in docker HOT 3
- Example to deploy in Deno
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno-puppeteer.