-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.x] add Chrome driver auto detection #816
Conversation
What does this do exactly? What do you mean by "determine the install driver version"? |
sorry, should have said "the installed chromium version". this checks the currently installed version of Chromium, and uses that to install the appropriate Driver version. for example, on linux, it would run So let's say the installed version is 84.0.123.45. |
@browner12 can you maybe also send in a PR to the docs for this? |
sure thing |
the `--detect` flag was added to Dusk in laravel/dusk#816 which automatically downloads the correct driver based on the version of Chrome currently installed on the system.
the `--detect` flag was added to Dusk in laravel/dusk#816 which automatically downloads the correct driver based on the version of Chrome currently installed on the system.
Using the
--detect
flag, the command will see if it can determine the install driver version, and then install the latest of that major version.All credit goes to @staudenmeir. This code was taken from https://github.com/staudenmeir/dusk-updater.
In our next major release, I feel like this should be the default option, and we should add a
--latest
flag to get back to the current default behavior.