{"name":"chromedriver","version":"147.0.3","keywords":["chromedriver","selenium"],"author":{"url":"http://www.lambda3.com.br","name":"Giovanni Bassi","email":"giggio@giggio.net"},"license":"Apache-2.0","_id":"chromedriver@147.0.3","maintainers":[{"name":"giggio","email":"giggio@giggio.net"}],"homepage":"https://github.com/giggio/node-chromedriver","bugs":{"url":"https://github.com/giggio/node-chromedriver/issues"},"bin":{"chromedriver":"bin/chromedriver"},"dist":{"shasum":"f6c987fca173a539f8ed984d21da839133e7918a","tarball":"http://registry-npm.ywwl.com/chromedriver/download/chromedriver-147.0.3.tgz","fileCount":6,"integrity":"sha512-OF+WpbIXXqD9g0BxDkJo3vpBgeaAWy8VpWDkt9yM466lVFnhzIgjmj1SvFYMENwesaD2iFABiY5surVz6rj3qA==","signatures":[{"sig":"MEUCIQDc34Vl9vVUffF7lPE5Bngn0QuECaeomwQH3YRJaBTOjwIgfpMYLuWCA6cIkWRCTSyut+RQlEQa3TJpkmcOfhpePUE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/chromedriver@147.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48702,"size":14674,"noattachment":false,"key":"/chromedriver/-/chromedriver-147.0.3.tgz"},"main":"lib/chromedriver","engines":{"node":">=20"},"gitHead":"0bd48d497d7d9456c089ddfb6105602ad1b824a6","scripts":{"lint":"eslint --max-warnings=0","test":"jest","install":"node install.js","test:ci":"jest --ci --reporters=default --reporters=jest-junit","typecheck":"tsc","update-chromedriver":"node update.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4a254e89-2928-454e-84cf-e74d078e57f8"}},"repository":{"url":"git://github.com/giggio/node-chromedriver.git","type":"git"},"_npmVersion":"11.11.0","description":"ChromeDriver for Selenium","directories":{},"_nodeVersion":"24.14.1","dependencies":{"axios":"^1.15.0","extract-zip":"^2.0.1","proxy-agent":"^8.0.1","tcp-port-used":"^1.0.2","proxy-from-env":"^2.0.0","compare-versions":"^6.1.0","@testim/chrome-version":"^1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","eslint":"^10.2.0","semver":"^7.7.4","globals":"^17.5.0","@eslint/js":"^10.0.1","jest-junit":"^16.0.0","typescript":"^6.0.2","@types/jest":"^30.0.0","@types/node":"^25.6.0","@types/axios":"^0.9.36","@types/semver":"^7.7.1","@eslint/eslintrc":"^3.3.5","@types/tcp-port-used":"^1.0.4","@types/proxy-from-env":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/chromedriver_147.0.3_1776277277056_0.12469484671825559","host":"s3://npm-registry-packages-npm-production"},"readme":"# ChromeDriver\n\n[![Build app](https://github.com/giggio/node-chromedriver/actions/workflows/build.yml/badge.svg)](https://github.com/giggio/node-chromedriver/actions/workflows/build.yml)\n[![npm](https://img.shields.io/npm/dt/chromedriver.svg)](https://www.npmjs.com/package/chromedriver)\n\nAn NPM wrapper for Selenium [ChromeDriver](https://sites.google.com/chromium.org/driver/).\n\n## Building and Installing\n\n```bash\nnpm install chromedriver\n```\n\nOr grab the source and\n\n```bash\nnode ./install.js\n```\n\nWhat this is really doing is just grabbing a particular \"blessed\" (by\nthis module) version of ChromeDriver. As new versions are released\nand vetted, this module will be updated accordingly.\n\nThe package has been set up to fetch and run ChromeDriver for MacOS (darwin),\nLinux based platforms (as identified by Node.js), and Windows.  If you\nspot any platform weirdness, let us know or send a patch.\n\n## Configuration Methods\n\nYou can configure chromedriver using any of the following methods. The installer will check all of these, in order of\nprecedence:\n\n- Environment variables in uppercase (e.g., `CHROMEDRIVER_VERSION`)\n- `package.json#config` in lowercase\n- `.npmrc` entries in lowercase (e.g., `chromedriver_version=LATEST`)\n\nThis applies to all options such as:\n\n- `chromedriver_version`\n- `chromedriver_cdnurl`\n- `chromedriver_cdnbinariesurl`\n- `chromedriver_legacy_cdnurl`\n- `chromedriver_skip_download`\n- `chromedriver_force_download`\n- `chromedriver_filepath`\n- `detect_chromedriver_version`\n- `include_chromium`\n\nBut not to native npm config options, which can be set as per\n[NPM's documentation](https://docs.npmjs.com/cli/using-npm/config).\n\nFor example, to set the version, you can use:\n\n```bash\nCHROMEDRIVER_VERSION=LATEST npm install chromedriver\n```\n\nOr in your package.json under `config`:\n\n```jsonc\n{\n  // ... other configuration\n  \"config\": {\n    \"chromedriver_version\": \"LATEST\"\n  }\n}\n```\n\nYou can also add it to your `.npmrc` when using NPM up to version 11,\nbut the NPM team is\n[discouraging it](https://github.com/npm/cli/issues/8153)\nand it won't work on version 12+:\n\n```ini\nchromedriver_version=LATEST\n```\n\nThe same goes to using arguments, it will work up to version 11:\n\n```bash\nnpm install chromedriver --chromedriver_version=LATEST\n```\n\nThese last two way to configure the installation will be removed from this package a few months after the NPM\nteam removes support for them.\n\n### Force download\n\nBy default this package, when installed, will search for an existing\nChromedriver binary in your configured temp directory. If found, and it is the\ncorrect version, it will simply copy it to your node_modules directory. You can\nforce it to always download by configuring it in your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"chromedriver_force_download\": \"true\"\n  }\n}\n```\n\nAnother option is to use PATH variable `CHROMEDRIVER_FORCE_DOWNLOAD`.\n\n```bash\nCHROMEDRIVER_FORCE_DOWNLOAD=true npm install chromedriver\n```\n\n### Custom binaries url\n\nThis allows you to use your own endpoints for metadata and binaries. It is useful in air gapped\nscenarios or if you have download restrictions, such as firewalls.\n\nThis was changed for version 115 and greater\n([see details](https://groups.google.com/g/chromedriver-users/c/clpipqvOGjE)),\nbut implemented in this package starting with version\n`114.0.2`. To see the configuration to prior versions check out this\n[README.md](https://github.com/giggio/node-chromedriver/tree/114.0.1#custom-binaries-url)\nat the latest tag where it was using the legacy urls (`114.0.1`).\n\nThere are two urls that need to be configured, one for metadata and one for binaries.\nThe one for metadata is the \"CDN url\", and the one for binaries is the \"CDN binaries url\".\nSee [Chrome for Testing](https://googlechromelabs.github.io/chrome-for-testing/) to understand\nhow these urls work.\n\n#### Config\n\nFor metadata use `chromedriver_cdnurl`. The default is `https://googlechromelabs.github.io`. You need to either supply\nthe binary download endpoint, or the binaries url config, see below.\n\nFor binaries use `chromedriver_cdnbinariesurl`. The default is to search for the download url using\n`$chromedriver_cdnurl/chrome-for-testing/[version].json`, which forms a URL like:\n<https://googlechromelabs.github.io/chrome-for-testing/122.0.6261.57.json>.\n\nThe resulting url will be something like:\n<https://storage.googleapis.com/chrome-for-testing-public/122.0.6261.57/linux64/chromedriver-linux64.zip>.\n\nKeep in mind that this last url is just an example and it might change (as it has happened in the past).\n\nOne option is to use the environment variables `CHROMEDRIVER_CDNURL` and `CHROMEDRIVER_CDNBINARIESURL`.\n\n```bash\nCHROMEDRIVER_CDNURL=https://npmmirror.com/metadata CHROMEDRIVER_CDNBINARIESURL=https://npmmirror.com/binaries npm install chromedriver\n```\n\nOr add them to your `package.json`:\n\n```json\n{\n  \"config\": {\n    \"chromedriver_cdnurl\": \"https://npmmirror.com/metadata\",\n    \"chromedriver_cdnbinariesurl\": \"https://npmmirror.com/binaries\"\n  }\n}\n```\n\nOr use the legacy arguments:\n\n```bash\nnpm install chromedriver --chromedriver_cdnurl=https://npmmirror.com/metadata --chromedriver_cdnbinariesurl=https://npmmirror.com/binaries\n```\n\nOr add these properties to your [`.npmrc`](https://docs.npmjs.com/cli/configuring-npm/npmrc) file:\n\n```ini\nchromedriver_cdnurl=https://npmmirror.com/metadata\nchromedriver_cdnbinariesurl=https://npmmirror.com/binaries\n```\n\n### Custom binaries file\n\nTo get the chromedriver from the filesystem instead of a web request use the npm config property `chromedriver_filepath`\nin your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"chromedriver_filepath\": \"/path/to/chromedriver_mac64.zip\"\n  }\n}\n```\n\nOr using the environment variable:\n\n```bash\nCHROMEDRIVER_FILEPATH=/path/to/chromedriver_mac64.zip npm install chromedriver\n```\n\nOr the legacy methods:\n\n```bash\nnpm install chromedriver --chromedriver_filepath=/path/to/chromedriver_mac64.zip\n```\n\nOr add property to your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```ini\nchromedriver_filepath=/path/to/chromedriver_mac64.zip\n```\n\nThis variable can be used to set either a `.zip` file or the binary itself, eg:\n\n```bash\nCHROMEDRIVER_FILEPATH=/bin/chromedriver\n```\n\n### Installing on RISC-V 64-bit Systems\n\nChromedriver does not provide an official binary for RISC-V 64-bit architectures. To install on a RISC-V system, you must supply your own Chromedriver binary using the `--chromedriver_filepath` option. For example:\n\n```bash\nnpm install chromedriver --chromedriver_filepath=/path/to/chromedriver\n```\n\n### Custom download options\n\nInstall through a proxy.\n\n```bash\nnpm config set proxy http://[user:pwd]@domain.tld:port\nnpm config set https-proxy http://[user:pwd]@domain.tld:port\n```\n\nUse different User-Agent.\n\n```bash\nnpm config set user-agent \"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0\"\n```\n\n### Skipping chromedriver download\n\nYou may wish to skip the downloading of the chromedriver binary file, for example if you know for certain that it is already there or if you want to use a system binary and just use this module as an interface to interact with it.\n\nTo achieve this you can use the config property `chromedriver_skip_download`, either via environment variable:\n\n```bash\nCHROMEDRIVER_SKIP_DOWNLOAD=true npm install chromedriver\n```\n\nOr in your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"chromedriver_skip_download\": \"true\"\n  }\n}\n```\n\nOr using the legacy method, via argument:\n\n```bash\nnpm install chromedriver --chromedriver_skip_download=true\n```\n\nOr adding a property to your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```ini\nchromedriver_skip_download=true\n```\n\n### Versioning\n\nThe NPM package version tracks the version of chromedriver that will be installed,\nwith an additional build number that is used for revisions to the installer.\nYou can use the package version number to install a specific version, or use the\nsetting to a specific version. If there is a new Chromedriver version available which is not yet available as a version\nof `node-chromedriver`, the npm command `npm run update-chromedriver` in this repository can be used to make the\nrequired updates to this module, please submit the change as a PR. To always install the latest version of Chromedriver,\nuse `LATEST` as the version number. In your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"chromedriver_version\": \"LATEST\"\n  }\n}\n```\n\nUsing the environment variable:\n\n```bash\nCHROMEDRIVER_VERSION=LATEST npm install chromedriver\n```\n\nOr using the legacy method:\n\n```bash\nnpm install chromedriver --chromedriver_version=LATEST\n```\n\nOr adding the property to your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```ini\nchromedriver_version=LATEST\n```\n\nAnother option is to use env variable `CHROMEDRIVER_VERSION`.\n\n```bash\nCHROMEDRIVER_VERSION=LATEST npm install chromedriver\n```\n\nYou can force the latest release for a specific major version by specifying `LATEST_{VERSION_NUMBER}`:\n\n```bash\nCHROMEDRIVER_VERSION=LATEST_80 npm install chromedriver\n```\n\nYou can also force a different version of chromedriver by replacing `LATEST` with a version number:\n\n```bash\nCHROMEDRIVER_VERSION=75.0.3770.140 npm install chromedriver\n```\n\n### Detect ChromeDriver Version\n\nThe NPM package version may not be always compatible to your Chrome version.\nTo get the chromedriver that corresponds to the version of Chrome installed,\nyou can use the npm config property `detect_chromedriver_version`. In your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"detect_chromedriver_version\": \"true\"\n  }\n}\n```\n\nOr using the environment variable:\n\n```bash\nDETECT_CHROMEDRIVER_VERSION=true npm install chromedriver\n```\n\nOr the legacy method with the argument:\n\n```bash\nnpm install chromedriver --detect_chromedriver_version=true\n```\n\nOr add property to your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```ini\ndetect_chromedriver_version=true\n```\n\n**Note:** When the property `detect_chromedriver_version` is provided,\n`chromedriver_version` and `chromedriver_filepath` properties are ignored.\n\n### Include Chromium\n\nIf you don't have Chrome installed, you can check for Chromium version instead by setting the argument\n`include_chromium` to `true`. In your package.json under `config`:\n\n```json\n{\n  \"config\": {\n    \"include_chromium\": \"true\"\n  }\n}\n```\n\nOr using the environment variable:\n\n```bash\nINCLUDE_CHROMIUM=true npm install chromedriver\n```\n\nOr using the legacy argument:\n\n```bash\nnpm install chromedriver --include_chromium=true\n```\n\nOr add property to your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```ini\ninclude_chromium=true\n```\n\n**Note:** The property `INCLUDE_CHROMIUM` is ignored if the property `DETECT_CHROMEDRIVER_VERSION` is not used.\n\n## Running\n\n```bash\nbin/chromedriver [arguments]\n```\n\nAnd npm will install a link to the binary in `node_modules/.bin` as\nit is wont to do.\n\n## Running with Selenium WebDriver\n\n```javascript\nrequire('chromedriver');\nvar webdriver = require('selenium-webdriver');\nvar driver = new webdriver.Builder()\n  .forBrowser('chrome')\n  .build();\n```\n\n(Tested for selenium-webdriver version `2.48.2`)\n\nThe path will be added to the process automatically, you don't need to configure it.\nBut you can get it from `require('chromedriver').path` if you want it.\n\n## Running via node\n\nThe package exports a `path` string that contains the path to the\nchromedriver binary/executable.\n\nBelow is an example of using this package via node.\n\n```javascript\nvar childProcess = require('child_process');\nvar chromedriver = require('chromedriver');\nvar binPath = chromedriver.path;\n\nvar childArgs = [\n  'some argument'\n];\n\nchildProcess.execFile(binPath, childArgs, function(err, stdout, stderr) {\n  // handle results\n});\n\n```\n\nYou can also use the start and stop methods:\n\n```javascript\nvar chromedriver = require('chromedriver');\n\nargs = [\n // optional arguments\n];\nchromedriver.start(args);\n// run your tests\nchromedriver.stop();\n```\n\nWith the latest version, you can optionally receive a Promise from the `chromedriver.start` function:\n\n```javascript\nvar returnPromise = true;\nchromedriver\n  .start(args, returnPromise)\n  .then(() => {\n    console.log('chromedriver is ready');\n  });\n```\n\nNote: if your tests are ran asynchronously, chromedriver.stop() will have to be\nexecuted as a callback at the end of your tests\n\n## A Note on chromedriver\n\nChromedriver is not a library for NodeJS.\n\nThis is an _NPM wrapper_ and can be used to conveniently make ChromeDriver available.\nIt is not a Node.js wrapper.\n\n## Supported Node.js versions\n\nWe will do our best to support every supported Node.js versions.\nSee [nodejs/Release](https://github.com/nodejs/Release) for\nthe current supported versions. You can also view our\n[build scripts](https://github.com/giggio/node-chromedriver/blob/main/.github/workflows/build.yml#L41) and check the\nversions there.\n\n## Contributing\n\nQuestions, comments, bug reports, and pull requests are all welcome.  Submit them at\n[the project on GitHub](https://github.com/giggio/node-chromedriver/).\n\nBug reports that include steps-to-reproduce (including code) are the\nbest. Even better, make them in the form of pull requests.\n\nWe have added\n[VS Code Remote support with containers](https://code.visualstudio.com/docs/remote/containers).\nIf you are on Windows, set `git config core.autocrlf input` so you don't get git errors.\n\n## Author\n\n[Giovanni Bassi](https://github.com/giggio), with collaboration from\n[lots of good people](https://github.com/giggio/node-chromedriver/graphs/contributors).\n\nThanks for the [PhantomJS](https://github.com/Medium/phantomjs) install project for heavy inspiration!\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","publish_time":1776277277214,"_cnpm_publish_time":1776277277214,"dist-tags":{"latest":"157.0.2"}}