macaca-chromedriver
v1.2.16
Published
Node.js wrapper for the selenium chromedriver.
Downloads
1,207
Readme
macaca-chromedriver
Node.js wrapper for the selenium chromedriver.
Contributors
|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
.
Installment
$ npm i macaca-chromedriver --save-dev
Custom port
Another option is to use port variable MACACA_CHROMEDRIVER_PORT
$ MACACA_CHROMEDRIVER_PORT=9516 macaca run --verbose
Custom binaries url
To use a mirror of the ChromeDriver binaries use npm config property chromedriver_cdnurl
.
Default is http://chromedriver.storage.googleapis.com
.
$ npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
Or add property into your .npmrc
file.
$ chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
Another option is to use PATH variable CHROMEDRIVER_CDNURL
.
$ CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver npm install chromedriver
Quick Start
$ chromedriver
Custom Version
$ CHROMEDRIVER_VERSION=2.2x npm i macaca-chromedriver -g
versioning list: https://chromedriver.chromium.org/downloads
License
The MIT License (MIT)