Node.js wrapper for the selenium chromedriver.
npm install macaca-chromedriver[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/macaca-chromedriver.svg
[npm-url]: https://npmjs.org/package/macaca-chromedriver
[travis-image]: https://img.shields.io/travis/macacajs/macaca-chromedriver.svg
[travis-url]: https://travis-ci.org/macacajs/macaca-chromedriver
[coveralls-image]: https://img.shields.io/coveralls/macacajs/macaca-chromedriver.svg
[coveralls-url]: https://coveralls.io/r/macacajs/macaca-chromedriver?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/macaca-chromedriver.svg
[download-url]: https://npmjs.org/package/macaca-chromedriver
> Node.js wrapper for the selenium chromedriver.
|
xudafeng
|
ziczhu
|
paradite
|
Super-Ps
|
Yinxl
|
kyowang
|
| :---: | :---: | :---: | :---: | :---: | :---: |
yihuineng
|
Chan-Chun
|
zjhch123
This project follows the git-contributor spec, auto updated at Tue Feb 15 2022 18:09:23 GMT+0800.
``bash`
$ npm i macaca-chromedriver --save-dev
Another option is to use port variable MACACA_CHROMEDRIVER_PORT
`bash`
$ MACACA_CHROMEDRIVER_PORT=9516 macaca run --verbose
To use a mirror of the ChromeDriver binaries use npm config property chromedriver_cdnurl.http://chromedriver.storage.googleapis.com
Default is .
`bash`
$ npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
Or add property into your .npmrc file.
`bash`
$ chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
Another option is to use PATH variable CHROMEDRIVER_CDNURL.
`bash`
$ CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver npm install chromedriver
`bash`
$ chromedriver
`bash``
$ CHROMEDRIVER_VERSION=2.2x npm i macaca-chromedriver -g
versioning list: https://chromedriver.chromium.org/downloads
The MIT License (MIT)