Shabar
Shabar

Reputation: 2823

Puppeteer always complaining about chromium

I was trying to run tests using Puppeteer(V2.0.0) and skipped chromium installation with PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true. So after puppeteer installation I cannot see .local-chromium folder under puppteer filder inside node module. I think that is expected.

So my expectation is to run against my local installed chrome (79.0.3945.117) which I have chromedriver locally and set the path withing the script as below

this.browser = await puppeteerCommon.launch({ headless: helper.headless, executablePath: "C:\\Chrome\\chromedriver.exe",

But the problem is, when running the test still complaining with below error despite of no chromium installed

TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r706915

Can anyone shed some light here please.

Upvotes: 0

Views: 1717

Answers (1)

mbit
mbit

Reputation: 3033

Puppeteer doesn't need chromedriver. From Puppeteer:

executablePath Path to a Chromium or Chrome executable to run instead of the bundled Chromium. If executablePath is a relative path, then it is resolved relative to current working directory.

Use a full path to Chrome.exe instead of chromedriver.

Upvotes: 1

Related Questions