Kod DBUT Selenium PHP

<?php

namespace Facebook\WebDriver;

use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;

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\n";

sleep(60);

// terminate the session and close the browser
$driver->quit();
Real Ratel