hayatravis / php-selenium-server
操作 selenium-server-standalone。您可以从 PHP 命令行启动和停止。
1.0.2
2017-11-17 12:53 UTC
Requires
Requires (Dev)
- phake/phake: ^3.0
- php-coveralls/php-coveralls: ^1.0
- phpunit/phpcov: ^4.0
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2024-09-29 03:15:32 UTC
README
用法
<?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();