I have an ARM architecture by Mac OS arm M1 Homestead and I have idea change my defaut browser for get point.
then I had changed the default browser to the Firefox
I had done:
$sudo apt-get update
$sudo apt-get upgrade
$sudo apt install firefox
$php artisan dusk:install-firefox
$php artisan dusk:firefox-driver
I saw again same as error with another port.
$php artisan dusk
PHPUnit 9.5.16 by Sebastian Bergmann and contributors.
E 1 / 1 (100%)
Time: 00:00.389, Memory: 20.00 MB
There was 1 error:
1) Tests\Browser\ExampleTest::testBasicExample
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"firefox","moz:firefoxOptions":{"args":["--headless","--window-size=1920,1080"],"prefs":{"reader.parse-on-load.enabled":false,"devtools.jsonview.enabled":false,"devtools.console.stdout.content":true}}}]},"desiredCapabilities":{"browserName":"firefox","platform":"ANY","moz:firefoxOptions":{"args":["--headless","--window-size=1920,1080"],"prefs":{"reader.parse-on-load.enabled":false,"devtools.jsonview.enabled":false,"devtools.console.stdout.content":true}}}}
Failed to connect to localhost port 4444: Connection refused
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php:333
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php:131
/home/vagrant/code/truck-driver.brothersprinting.net/tests/DuskTestCase.php:48
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:219
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/laravel/framework/src/Illuminate/Support/helpers.php:243
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:220
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:98
/home/vagrant/code/truck-driver.brothersprinting.net/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:66
/home/vagrant/code/truck-driver.brothersprinting.net/tests/Browser/ExampleTest.php:21
I will back if I would finish this way.