$ composer require zolli/webdriver
Documentation found inside this repository
include './vendor/autoload.php';
// Create required support classes
$capability = \Zolli\WebDriver\Capability\DesiredCapability::chrome();
$executor = new \Zolli\WebDriver\Http\Guzzle\GuzzleHttpCommandExecutor('http://localhost:4444/wd/hub');
$commandFactory = new \Zolli\WebDriver\Http\Command\HttpCommandFactory();
// Instantiate the driver
$driver = new \Zolli\WebDriver\Remote\RemoteDriver($executor, $commandFactory);
// Create a session
$session = $driver->createSession($capability);
// Use session to issue commands to the server
$session->navigateTo('https://google.com');
Feel free to create issues and pull requests, but don't forget to comply with PSR-2.
This project licensed under Apache License 2.0