Не получается разобраться в первоначальной настройке.
Запускаю java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-2.48.2.jar
Использую пакет https://github.com/facebook/php-webdriver
Выполняю подобные строки
Код: Выделить всё
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
$host = 'http://localhost:4444/wd/hub'; // this is the default
$desired_capabilities = DesiredCapabilities::chrome();
$driver = RemoteWebDriver::create($host, $desired_capabilities);
$driver->get('https://google.com');
$title = $driver->getTitle();
Выдаёт
Код: Выделить всё
Facebook\WebDriver\Exception\WebDriverCurlException
Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}
Operation timed out after 30001 milliseconds with 0 bytes received