1. Go to this page and download the library: Download itnelo/reactphp-webdriver library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
itnelo / reactphp-webdriver example snippets
use React\EventLoop\Factory as LoopFactory;
use Itnelo\React\WebDriver\WebDriverFactory;
$loop = LoopFactory::create();
$webDriver = WebDriverFactory::create(
$loop,
[
'hub' => [
'host' => 'selenium-hub',
'port' => 4444,
],
]
);