java -jar selenium-server-standalone-2.52.0.jar
curl -sS https://getcomposer.org/installer | php
php composer.phar require facebook/webdriver
use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\RemoteWebDriver; require_once 'vendor/autoload.php'; // This would be the url of the host running the server-standalone.jar $host = 'http://localhost:4444/wd/hub'; // this is the default // Set URL $url = 'https://snippetinfo.net'; // Launch Firefox $driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox()); $driver->get($url); echo $driver->getTitle();