tobli / alto-saxophone

Download Chromedriver and access from nodejs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alto Saxophone - Chromedriver install

This is a simple package that downloads Chromedriver and provides a node api for accessing the path to the binary. There are other packages like this, but I wanted to make sure I had an updated package to include in Browsertime.

Why the funny name you ask? Well, there are countless Selenium modules in npm. Keywords and the description for the module allows you to find it anyway, so might as well choose a unique name.

How to use?

var driver = require('alto-saxophone').chromedriver;

var p = driver.binPath();
// launch chromedriver from path

You can ovveride where you download the Chromedriver by setting process.env.CHROMEDRIVER_BASE_URL.

About

Download Chromedriver and access from nodejs.


Languages

Language:JavaScript 100.0%