orchestral / dusk-updater Goto Github PK
View Code? Open in Web Editor NEWUpdater for Laravel Dusk ChromeDriver binaries
Home Page: https://packagist.org/packages/orchestra/dusk-updater
License: MIT License
Updater for Laravel Dusk ChromeDriver binaries
Home Page: https://packagist.org/packages/orchestra/dusk-updater
License: MIT License
This may require symfony/process
and version comparison to check if we need to update ChromeDriver
.
It seems it's changed since 115 to use the new endpoints: https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
Laravel already takes this into account:
https://github.com/laravel/dusk/blob/7.x/src/Console/ChromeDriverCommand.php
Can we backport this here?
When I run the two basic commands, I get the following result
Is it normal to get results on update
command and on detect --auto-update
to get this exception and if I debug the process I get the errorOutput /usr/bin/google-chrome: not found
Just run on ubuntu 22 using Laravel sail (Laravel 9) the commands update
command and on detect --auto-update
When attempting to run update
command, the error Unable to retrieve ChromeDriver [106.0.5249.61]
appears. This appears to be due to a change in the url for Mac m1 chromedriver binaries. See SeleniumHQ/selenium#11066
On M1 Mac, run update
command
This is to allow installation of ChromeDriver
outside of the normal vendor/laravel/dusk/bin
directory.
dusk-updater detect
is unable to find the chrome installation when on WSL since the OS detection identifies it as windows. This is because $PHP_OS returns "win", which is more likely a php problem, but not one that's likely to be fixed anytime soon.
Additionally, I'm unable to simply pass in the path to the chrome installation because:
[InvalidArgumentException]
Chrome version cannot be detected in custom installation path on Windows.
php
and chromium-browser
installed./vendor/bin/dusk-updater detect --auto-update
Use php_uname('s')
instead. On WSL Ubuntu, it correctly returns "Linux". Native windows returns "Windows NT". I don't have a Mac to test, but I would expect "Darwin" (https://www.php.net/manual/en/function.php-uname.php)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.