Git Product home page Git Product logo

Comments (3)

Kikobeats avatar Kikobeats commented on August 29, 2024

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.

paul-bell avatar paul-bell commented on August 29, 2024

Thank you very much. I will be testing today.

from browserless.

paul-bell avatar paul-bell commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.