Comments (3)
Ensure your package.json
looks like this:
{
"dependencies": {
"browserless": "latest",
"puppeteer": "latest"
},
"scripts": {
"postinstall": "node node_modules/puppeteer/install.js"
}
}
Then, npm install
, and that's all. You don't need to specify the binary path ๐
from browserless.
Thank you very much. I will be testing today.
from browserless.
So...the beat goes on.
I got the install script to work, i.e., Chrome is now installed. But, given that we're dealing with a Docker container created by a "docker build" command, its location is different. It landed in this directory:
/efs/tmp/node/home/.cache/puppeteer/chrome/linux-117.0.5938.92/chrome-linux64
I naively assumed that, regardless of where the Puppeteer script installed Chrome, it would know to find it there. Wrong again: first experiments showed Puppeteer complaining that he could not find the Chrome executable.
Thus I again asserted the executablePath property to the browser constructor. The "not found" complaint went away, but the original "Timed out after 60000 ms" returned.
At this point, I am at a real loss as to how to proceed. In the hope that browserless+chrome is faster than Firefox+Selenium, I am eager to make it work. (I can say that browserless+chrome is far simpler to use than FF+Selenium).
I am grateful for your ongoing help with this.
Thanks again.
from browserless.
Related Issues (20)
- Installing browserless via npm throws an error HOT 1
- browserless not using proxy server HOT 1
- Failed with vercel deployments or pkg bundling HOT 1
- v9 iteration
- cursor emulation support
- Using SocksProxyAgent fails HOT 3
- Error in top-user-agent module HOT 1
- Sample from documentation site not working out of the box HOT 1
- Lighthouse: images for desktop reports returning mobile interface HOT 6
- Problem with screenshot. HOT 1
- Add types HOT 4
- Add `@browserless/screencast`
- function: beware about memory limits
- feat(function): use a thread instead of a process
- typescript support๏ผ HOT 1
- 'Technical Details' section missing (?) HOT 1
- BrowserlessError: EBRWSRTIMEOUT, Promise timed out after 30000 milliseconds HOT 5
- Access to Dynamic Content? HOT 9
- Devices with isMobile cause empty screenshots HOT 4
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 browserless.