<?php
namespace FacebookWebDriver;
use FacebookWebDriverRemoteDesiredCapabilities;
use FacebookWebDriverRemoteRemoteWebDriver;
require_once 'vendor/autoload.php';
$host = 'http://localhost:4444/';
$ops = new ChromeOptions();
$ops->setExperimentalOption("excludeSwitches", array("enable-automation"));
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability(ChromeOptions::CAPABILITY, $ops);
$driver = RemoteWebDriver::create($host, $capabilities);
// open google page on chrome
$driver->get('https://www.google.com');
// fullscreen
$driver->manage()->window()->maximize();
// TODO: code...
echo "the program ended successfully
";
sleep(60);
// terminate the session and close the browser
$driver->quit();