wpstarter / o-dusk-updater
Updater for Laravel Dusk ChromeDriver binaries
Fund package maintenance!
paypal.me/alt9270
Installs: 1 253
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- ext-openssl: *
- ext-zip: *
- composer/semver: ^1.5 || ^3.0
- symfony/console: ^5.0|^6.0
- symfony/polyfill-ctype: ^1.9
- symfony/process: ^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^8.5.21 || ^9.5.10 || ^10.0.3
- wpstarter/dusk: ^1.0
This package is auto-updated.
Last update: 2024-11-23 17:14:48 UTC
README
This is a fork based on staudenmeir/dusk-updater but uses Symfony Console to allow it to be use outside of Laravel installation.
Introduction
This Symfony command updates your Laravel Dusk ChromeDriver binaries to the latest or specified release.
Supports all versions of Laravel Dusk especially used outside of Laravel installation.
Installation
composer require --dev wpstarter/dusk-updater
Usage
Updating ChromeDriver
Download the latest stable ChromeDriver release:
./vendor/bin/dusk-updater update
You can also specify the major Chrome/Chromium version you are using:
./vendor/bin/dusk-updater update 74
Or you directly specify the desired ChromeDriver version:
./vendor/bin/dusk-updater update 74.0.3729.6
If Dusk is still using the previous version after the update, there is probably an old ChromeDriver process running that you need to terminate first.
Checking Chrome Versions
You can check if the installed Chrome and ChromeDriver version using:
./vendor/bin/dusk-updater detect
The command will prompt you to download new ChromeDriver if it is outdated.
Specify the absolute path to your custom Chrome/Chromium installation (not supported on Windows):
./vendor/bin/dusk-updater detect --chrome-dir=/usr/bin/google-chrome
Finally, you can also tell the command to automatically downlad new version if it is outdated using:
./vendor/bin/dusk-updater detect --auto-update