hayatravis/php-selenium-server

Operate selenium-server-standalone. You can start and stop from the php command line.

1.0.2 2017-11-17 12:53 UTC

README

Build Status Coverage Status Total Downloads License composer.lock

Usage

<?php
require_once './vendor/autoload.php';

$client = new \Hayatravis\Pss\PhpSeleniumServer();

// Start selenium-server-standalone.
$client->startSeleniumServer();

/*
 * Program using Facebook \ WebDriver \ Remote \ RemoteWebDriver etc...
 *
 */

// Get selenium-server-standalone process ID.
$client->getPid();

// Confirm that selenium-server-standalone is stopped.
$client->isStopSeleniumServer();

// Stop selenium-server-standalone.
$client->stopSeleniumServer();