Fatal error: Uncaught Facebook\WebDriver\Exception\Internal\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--headless"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","goog:chromeOptions":{"args":["--headless"]}}}
Failed to connect to localhost port 4444: Connection refused in /var/www/html/work.24zz.ru/vendor/php-webdriver/webdriver/lib/Exception/Internal/WebDriverCurlException.php:20
Stack trace:
#0 /var/www/html/work.24zz.ru/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php(330): Facebook\WebDriver\Exception\Internal\WebDriverCurlException::forCurlError('POST', '/session', 'Failed to conne...', Array)
#1 /var/www/html/work.24zz.ru/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php(129): Facebook\WebDriver\Remote\HttpCommandExecutor->execute(Object(Facebook\WebDriver\Remote\WebDriverCommand))
#2 /var/www/html/work.24zz.ru/index.php(24): Facebook\WebDriver\Remote\RemoteWebDriver::create('http://localhos...', Object(Facebook\WebDriver\Remote\DesiredCapabilities))
#3 {main}
thrown in /var/www/html/work.24zz.ru/vendor/php-webdriver/webdriver/lib/Exception/Internal/WebDriverCurlException.php on line 20