New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/chromedriver-downloader

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/chromedriver-downloader

Tool to download the correct ChromeDriver version

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

@journeyapps/chromedriver-downloader

Downloads a ChromeDriver version based on the currently installed Chrome version.

Why?

ChromeDriver versions are strongly tied to specific Chrome versions. On developer machines, Chrome is typically the latest stable version, while CI environments would have a fairly static version.

This helps avoid the overhead of manually installing the correct ChromeDriver version every time the Chrome version changes.

Usage

Node 10.x or later is required.

Install:

yarn add --dev @journeyapps/chromedriver-downloader

Use:

const { downloadChromeDriver } = require('@journeyapps/chromedriver-downloader');

downloadChromeDriver().then(details => console.log(details));

For more options, look at the TypeScript definitions or source code.

Protractor

Sample config for Protractor:

// protractor.conf.js
const { downloadChromeDriver } = require('@journeyapps/chromedriver-downloader');

exports.config = {
  directConnect: true,
  capabilities: {
    browserName: 'chrome'
  },
  async beforeLaunch() {
    const { chromeDriverPath } = await downloadChromeDriver();
    exports.config.chromeDriver = chromeDriverPath;
  }
}

Keywords

FAQs

Package last updated on 18 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc