Skip to content
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

Merged
merged 4 commits into from
Sep 23, 2020

Conversation

browner12
Copy link
Contributor

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.

@taylorotwell
Copy link
Member

What does this do exactly? What do you mean by "determine the install driver version"?

@browner12
Copy link
Contributor Author

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 chromium-browser --version.

So let's say the installed version is 84.0.123.45. php artisan dusk:chrome-driver --detect would install the appropriate driver for v84.

@taylorotwell taylorotwell merged commit fdf5bd6 into laravel:6.x Sep 23, 2020
@browner12 browner12 deleted the detect-version branch September 23, 2020 14:06
@driesvints
Copy link
Member

@browner12 can you maybe also send in a PR to the docs for this?

@browner12
Copy link
Contributor Author

sure thing

browner12 added a commit to browner12/docs that referenced this pull request Sep 29, 2020
browner12 added a commit to browner12/docs that referenced this pull request Sep 29, 2022
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.
taylorotwell pushed a commit to laravel/docs that referenced this pull request Sep 29, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants