Owen Conti

Laravel Dusk Error: "Chrome version must be between 70 and 73"

Posted on under Laravel by Owen Conti.

When using Laravel Dusk, you have to ensure you're using the correct Chrome Driver version based on the version of Chrome installed on the machine.

For example, if Chrome updates to v79, the next time you run your Dusk tests, you'll run into an error similar to this:

Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: Chrome version must be between 70 and 73

Generally, the fix for this is to install the correct driver version:

1php artisan dusk:chrome-driver

That should be enough to install the correct version of the Chrome Driver based on the version of Chrome you have installed.

However, if the Chrome Driver can sometimes become left running in the background. At the time of writing, I'm not sure why it stays running sometimes. If it does stay running, Dusk will use the already running Chrome Driver instance when running your tests. This means you may be running an old version of Chrome Driver even though you've installed the latest driver.

To fix this, open Activity Monitor and search for "chromedriver". Delete any running Chrome Driver process and then try running your tests again!


Thanks for reading this article!

Hopefully you found this article useful! If you did, share it on X!

Found an issue with the article? Submit your edits against the repository.