How to detect version of chrome used with puppeteer?

ashish singh picture ashish singh · Apr 23, 2019 · Viewed 9k times · Source

I read that puppeteer uses the latest version of chrome with it, where can I find which version it is using?

I don't want to access navigator object on the window to get it. Basically nothing runtime. Just want to know if puppeteer as a package lists out its dependency somewhere

Basically, I want to look up what all CSS and javascript support I can assume to be there from other sites like 'can I use' or chrome references.

Answer

Thomas Dondorf picture Thomas Dondorf · Apr 23, 2019

Use the browser.version() function to find out during runtime which version is used.

If you have the page object you can use it like this:

const version = await page.browser().version();

To find out which Chromium version is bundled with the puppeteer version without starting, you should check out the release notes, there is always a section about the Chromium version which is used.

Example (taken from release notes from v1.14.0):

Big Changes

  • Chromium 75.0.3738.0 (r641577)