hayatravis/php-selenium-server

操作 selenium-server-standalone。您可以从 PHP 命令行启动和停止。

1.0.2 2017-11-17 12:53 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:15:32 UTC


README

Build Status Coverage Status Total Downloads License composer.lock

用法

<?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();