I want to use a different browser in laravel Dusk . so I do as the Documentation says
public static function prepare()
{
//static::startChromeDriver();
}
protected function driver()
{
return RemoteWebDriver::create(
'http://localhost:4444/wd/hub', DesiredCapabilities::phantomjs()
);
}
But It gives the following Error:
1) Tests\Browser\ApiLoginTest::api_login_check_for_user Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"phantomjs","platform":"ANY"}} Failed to connect to localhost port 4444: Connection refused
What is wrong? How can I configure laravel dusk to use a different browser eg. Firefox?