Overview

Namespaces

  • Peridot
    • WebDriverManager
      • Binary
        • Decompression
        • Request
      • Console
      • Event
      • OS
      • Process
      • Test
  • PHP

Classes

  • SeleniumProcess

Interfaces

  • SeleniumProcessInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class SeleniumProcess

SeleniumProcess is responsible for controlling Selenium Server processes.

Peridot\WebDriverManager\Process\SeleniumProcess implements Peridot\WebDriverManager\Process\SeleniumProcessInterface
Namespace: Peridot\WebDriverManager\Process
Package: Peridot\WebDriverManager\Process
Located at Process/SeleniumProcess.php
Methods summary
public
# __construct( )
public
# addBinary( Peridot\WebDriverManager\Binary\BinaryInterface $binary, string $directory )

Add a driver or binary to the argument list. Binary files will be searched for in the given directory.

Add a driver or binary to the argument list. Binary files will be searched for in the given directory.

Parameters

$binary
$directory

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::addBinary()
public array
# getArgs( )

Return the arguments being used by the process.

Return the arguments being used by the process.

Returns

array

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::getArgs()
public
# addArg( string $arg )

Add arguments to be used by the process.

Add arguments to be used by the process.

Parameters

$arg

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::addArg()
public
# addArgs( array $args )

Add multiple arguments at once.

Add multiple arguments at once.

Parameters

$args

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::addArgs()
public boolean
# isAvailable( )

Returns whether or not java is available for use.

Returns whether or not java is available for use.

Returns

boolean

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::isAvailable()
public mixed
# start( boolean $background = false )

Start the process and return it.

Start the process and return it.

Parameters

$background

Returns

mixed
$this

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::start()
public string
# getCommand( )

Return the java command being opened by the process.

Return the java command being opened by the process.

Returns

string

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::getCommand()
public array
# getStatus( boolean $loop = false )

Get process status. If loop is true it will loop until the process has finished before returning a final status.

Get process status. If loop is true it will loop until the process has finished before returning a final status.

Parameters

$loop

Returns

array

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::getStatus()
public boolean
# isRunning( )

Returns whether or not the process is running.

Returns whether or not the process is running.

Returns

boolean

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::isRunning()
public string
# getError( )

Get contents of error stream.

Get contents of error stream.

Returns

string

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::getError()
public integer
# close( )

Close the process.

Close the process.

Returns

integer

Implementation of

Peridot\WebDriverManager\Process\SeleniumProcessInterface::close()
Properties summary
protected array $args
# []
protected resource $process
# null
protected array $pipes
# []
WebDriver Manager API documentation generated by ApiGen