Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bobclewell's avatar

Dusk browser testing scripts stopped working in Laravel v10

I'm using Laravel v10.45.1 and my Dusk browser testing scripts stopped working on my Apple M3 Pro running Sonoma 14.5. I think an upgrade to my Google Chrome browser app may have broken it.

When I run: php artisan dusk

The error I see is:

Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: 
This version of ChromeDriver only supports Chrome version 126
Current browser version is 129.0.6668.71 with binary path 
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

I tried installing the support driver version... php artisan dusk:chrome-driver 126

I get the following feedback.. ChromeDriver binary successfully installed for version 126.0.6478.182.

But I rerun php artisan dusk, and get the same error.

I updated Dusk to the latest v7.13.0. I tried clearing configs and clearing cache.

How can I fix this issue?

0 likes
6 replies
jlrdw's avatar

Try install dusk with

 --with-all-dependencies

composer switch. Won't hurt to try it.

bobclewell's avatar

Same error:

Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 126
Current browser version is 129.0.6668.71 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
bobclewell's avatar

@jlrdw Thanks, but I already tried that. It has worked in the past, but something is different now. Not sure if it's the Chrome browser upgrade or something with Dusk.

wq9578's avatar

Between versions 126 and 129 the ChromeDriver directory changed, which results in having to different versions of the ChromeDriver installed with still the old one (v126) always being called.

ChromeDriver change: ./vendor/laravel/dusk/bin/chromedriver-mac-arm -> ./vendor/laravel/dusk/bin/chromedriver-mac-arm64/chromedriver

My fix (with full test report):

php artisan dusk:chrome-driver
ChromeDriver binary successfully installed for version 129.0.6668.100.

php artisan test --bail tests/Browser/SomeTest.php
  session not created: This version of ChromeDriver only supports Chrome version 126
Current browser version is 129.0.6668.101 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

./vendor/laravel/dusk/bin/chromedriver-mac-arm --version
ChromeDriver 126.0.6478.126 (d36ace6122e0a59570e258d82441395206d60e1c-refs/branch-heads/6478@{#1591})

./vendor/laravel/dusk/bin/chromedriver-mac-arm64/chromedriver --version
zsh: permission denied: ./vendor/laravel/dusk/bin/chromedriver-mac-arm64/chromedriver

chmod a+x ./vendor/laravel/dusk/bin/chromedriver-mac-arm64/chromedriver

./vendor/laravel/dusk/bin/chromedriver-mac-arm64/chromedriver --version
ChromeDriver 129.0.6668.100 (cf58cba358d31ce285c1970a79a9411d0fb381a5-refs/branch-heads/6668@{#1704})

Manual fix (dirty hack) in vendor/laravel/dusk/src/Chrome/ChromeProcess.php:

                #'mac-arm' => 'chromedriver-mac-arm',
                'mac-arm' => 'chromedriver-mac-arm64/chromedriver',


php artisan test --bail tests/Browser/SomeTest.php

[now working]

1 like

Please or to participate in this conversation.