'Error on Laravel Dusk Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: Chrome version must be between 70 and 73
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.
Solution 1:[1]
Solved after running php artisan dusk:chrome-driver
Solution 2:[2]
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.
Solution 3:[3]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eduardo Cruz |
| Solution 2 | darlo |
| Solution 3 | Moorthy |
