https://github.com/dbrekelmans/browser-driver-installer
Helps you install the appropriate browser driver
https://github.com/dbrekelmans/browser-driver-installer
browser-driver chromedriver hacktoberfest
Last synced: about 2 months ago
JSON representation
Helps you install the appropriate browser driver
- Host: GitHub
- URL: https://github.com/dbrekelmans/browser-driver-installer
- Owner: dbrekelmans
- License: mit
- Created: 2020-08-08T14:16:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T18:35:53.000Z (5 months ago)
- Last Synced: 2025-03-29T04:11:42.423Z (about 2 months ago)
- Topics: browser-driver, chromedriver, hacktoberfest
- Language: PHP
- Homepage:
- Size: 789 KB
- Stars: 46
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# browser-driver-installer
This command-line tool helps you install browser drivers.
A common use-case is to install a browser driver to run your functional test suite.## Why
While running automated testing tools in CI, you might currently install the latest version of your browser and
browser driver. These can become out-of-sync (for example: a new driver is released, but the matching browser is only released
a few days later).This tool installs a driver for you that will always work with your installed browser.
## Installation
### Phive
Install with `phive install bdi` or `phive install dbrekelmans/browser-driver-installer`.Run with `tools/bdi `.
_See https://github.com/phar-io/phive for information about phive itself._
### Composer
Install with `composer require --dev dbrekelmans/bdi`.Run with `vendor/bin/bdi ` or `vendor/bin/bdi.phar `
_To prevent dependency conflicts, `dbrekelmans/bdi` is a PHAR-only distribution. You can install the package including dependencies with `composer require --dev dbrekelmans/browser-driver-installer`_
### Download PHAR
You can download the PHAR directly from the github [releases page](https://github.com/dbrekelmans/browser-driver-installer/releases).Run with `bdi.phar `.
## Usage
Run `bdi` or `bdi detect` to automatically detect your installed browsers and install the corresponding drivers.If you want to install any working driver for a specific browser, run `bdi browser:`.
If you want to install a specific driver, run `bdi driver:` (defaults to the latest version. Use `--driver-version=` to install a different version).
You can specify a directory where the driver will be installed with `bdi detect `.For a full list of available commands, run `bdi list`.
### Supported drivers
* chromedriver
* geckodriver### Supported browsers
* google-chrome
* chromium
* firefox