As the title says, I've go a clean install of Laravel 5.4 and the latest Homestead (1.0.1). However, when I run a simple Dusk test case I get the following error:
Failed to connect to localhost port 9515: Connection refused
Anyone know how to deal with this? I tried changing the port to something else such as 8888
to no avail.
EDIT:
I've been able to dig a little deeper and found out that the chromedriver
executable was not actually executable (chmod
). Now that I've fixed that I get this error when I manually try to run it.
./chromedriver: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
vendor/laravel/dusk/bin/chromedriver-linux
. There is also a macOSchromedriver-linux
and windowschromedriver-win.exe
version. – Attisphp artisan dusk
via SSH in your server or Homestead? you needchrome browser
to run browser test, try to run command in host OS instead. – Saltarellosudo apt-get install libnss3-dev
– Slr