vig's avatar
Level 2

This version of ChromeDriver only supports Chrome version 74

Hi! I'm trying to learn how to test laravel and stuck with that error when I running "php artisan dusk"

  1. Tests\Browser\ExampleTest::testBasicExample Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.15.0-50-generic x86_64)

/var/www/testing/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:154 /var/www/testing/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:326 /var/www/testing/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:126 /var/www/testing/tests/DuskTestCase.php:40 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:192 /var/www/testing/vendor/laravel/framework/src/Illuminate/Support/helpers.php:816 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:193 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:93 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:64 /var/www/testing/tests/Browser/ExampleTest.php:22

2 hours of googling not helps

0 likes
2 replies
bobbybouwmann's avatar

Well you can figure out what chromium version you're running when using Laravel Dusk. If you use the binary from the package you can figure it out like so

// For mac
./vendor/laravel/dusk/bin/chromedriver-mac --version

// For linux
./vendor/laravel/dusk/bin/chromedriver-linux --version

If this is the wrong version you can simply run the following command (assuming you have the latest version of Laravel Dusk

// This will download the latest versions of the chrome driver
php artisan dusk:chrome-driver

If you still have problems after that I suggest you to download an version yourself. You can do that from this page: http://chromedriver.chromium.org/downloads After downloading you name it the same as the driver from dusk and move it to that bin directory and you should be good to go!

4 likes

Please or to participate in this conversation.