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

Viewed 3555

Error when trying to run php artisan dusk. A Chrome version error happened. I Google the error and took a quick look in a couple of websites including Laracasts and the Dusk Github issues.

3 Answers

Solved after running php artisan dusk:chrome-driver

Hopefully this helps someone else.

I found that my issue was:

Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 84

The Fix

I found the fix here https://barryvanveen.nl/blog/61-how-to-fix-common-laravel-dusk-problems

First run:

chromium-browser --version

Then after you find out your version from that run:

php artisan dusk:chrome-driver yourversion

Hope this helps someone else, as I was looking for an answer for a couple hours.

Solved after running the below command

php artisan dusk:chrome-driver --detect

Note: If you get the below error after running the above command

Failed to connect to localhost port 9515: Connection refused

then, restart your chrome browser and check it. It will solve that error. Hope it helps

Related