What is @testim/chrome-version?
@testim/chrome-version is an npm package that allows you to programmatically determine the version of Google Chrome installed on your system. This can be particularly useful for automated testing, CI/CD pipelines, and other scenarios where knowing the browser version is crucial.
Get Chrome Version
This feature allows you to get the installed version of Google Chrome. The code sample demonstrates how to use the package to fetch and log the Chrome version.
const chromeVersion = require('@testim/chrome-version');
chromeVersion().then(version => {
console.log(`Chrome version: ${version}`);
}).catch(err => {
console.error('Error fetching Chrome version:', err);
});