<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('/var/www/sites/eat_catalog/php/vendor/autoload.php');
$host = 'http://localhost:4444/';
$capabilities = DesiredCapabilities::firefox();
$driver = RemoteWebDriver::create($host, $capabilities);
$driver->get('http://google.com');
$title = $driver->findElement(WebDriverBy::id('sign-in'))->getAttribute('title');
$inputElement = $driver->findElement(WebDriverBy::id('username'));
echo $value;
$driver->quit();
?>