dbrekelmans / browser-driver-installer
Helps you install the appropriate browser driver.
Installs: 5 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 44
Watchers: 5
Forks: 11
Open Issues: 0
Requires
- php: ^8.1
- ext-json: *
- ext-zip: *
- ext-zlib: *
- symfony/console: ^6.0
- symfony/filesystem: ^6.0
- symfony/http-client: ^6.0
- symfony/polyfill-php80: ^1.28
- symfony/process: ^6.0
- thecodingmachine/safe: ^2.0
Requires (Dev)
- doctrine/coding-standard: ^12.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.0
- roave/security-advisories: dev-latest
- thecodingmachine/phpstan-safe-rule: ^1.2
- thecodingmachine/phpstan-strict-rules: ^1.0
- dev-main
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.5-beta.3
- 1.0.5-beta.2
- 1.0.5-beta.1
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- 0.3
- 0.3-alpha.2
- 0.3-alpha.1
- 0.2.1
- 0.2
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- 0.1-alpha.11
- 0.1-alpha.10
- 0.1-alpha.9
- 0.1-alpha.8
- 0.1-alpha.7
- 0.1-alpha.6
- 0.1-alpha.5
- 0.1-alpha.4
- 0.1-alpha.3
- 0.1-alpha.2
- 0.1-alpha.1
- dev-e2e-test-chromium
This package is auto-updated.
Last update: 2024-10-28 16:07:44 UTC
README
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 <command>
.
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 <command>
or vendor/bin/bdi.phar <command>
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.
Run with bdi.phar <command>
.
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:<browser-name>
.
If you want to install a specific driver, run bdi driver:<driver-name>
(defaults to the latest version. Use --driver-version=<version>
to install a different version).
You can specify a directory where the driver will be installed with bdi detect <path-to-directory>
.
For a full list of available commands, run bdi list
.
Supported drivers
- chromedriver
- geckodriver
Supported browsers
- google-chrome
- chromium
- firefox