Overview

Namespaces

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

Classes

  • Manager
  • Versions
  • Overview
  • Namespace
  • Class
  • Tree

Class Manager

The Manager provides an api for controlling Selenium Server. It can be used to keep binaries and drivers up to date, as well as start Selenium Server.

Peridot\WebDriverManager\Manager implements Peridot\WebDriverManager\Event\EventEmitterInterface uses Peridot\WebDriverManager\Event\EventEmitterTrait
Namespace: Peridot\WebDriverManager
Package: Peridot\WebDriverManager
Located at Manager.php
Methods summary
public
# __construct( Peridot\WebDriverManager\Binary\BinaryResolverInterface $resolver = null, Peridot\WebDriverManager\Process\SeleniumProcessInterface $process = null )

Parameters

$resolver
$process
public
# addBinary( Peridot\WebDriverManager\Binary\BinaryInterface $binary )

Add a binary to the collection of managed binaries.

Add a binary to the collection of managed binaries.

Parameters

$binary
public
# removeBinary( string $binaryName )

Remove a binary from the collection of managed binaries.

Remove a binary from the collection of managed binaries.

Parameters

$binaryName
public Peridot\WebDriverManager\Binary\BinaryResolver|Peridot\WebDriverManager\Binary\BinaryResolverInterface
# getBinaryResolver( )

Return the BinaryResolver used to resolve binary files.

Return the BinaryResolver used to resolve binary files.

Returns

Peridot\WebDriverManager\Binary\BinaryResolver|Peridot\WebDriverManager\Binary\BinaryResolverInterface
public
# setBinaryResolver( Peridot\WebDriverManager\Binary\BinaryResolverInterface $resolver )

Set the BinaryResolver used to resolve binary files.

Set the BinaryResolver used to resolve binary files.

Parameters

$resolver
public Peridot\WebDriverManager\Process\SeleniumProcess|Peridot\WebDriverManager\Process\SeleniumProcessInterface
# getSeleniumProcess( )

Return the SeleniumProcessInterface that will execute the selenium server command.

Return the SeleniumProcessInterface that will execute the selenium server command.

Returns

Peridot\WebDriverManager\Process\SeleniumProcess|Peridot\WebDriverManager\Process\SeleniumProcessInterface
public array
# getBinaries( callable $predicate = null )

Return all managed binaries.

Return all managed binaries.

Parameters

$predicate

Returns

array
public array
# getDrivers( )

Return all binaries that are considered drivers.

Return all binaries that are considered drivers.

Returns

array
public array
# getPendingBinaries( )

Pending binaries are binaries that are supported but have not been installed.

Pending binaries are binaries that are supported but have not been installed.

Returns

array
public boolean
# update( mixed $binaryName = '' )

Fetch and save binaries.

Fetch and save binaries.

Returns

boolean
public
# updateSingle( mixed $binaryName )

Update a single binary.

Update a single binary.

Parameters

$binaryName
public Peridot\WebDriverManager\Process\SeleniumProcessInterface
# start( boolean $background = false, integer $port = 4444, array $args = [] )

Start the Selenium server.

Start the Selenium server.

Parameters

$background
$port
$args

Returns

Peridot\WebDriverManager\Process\SeleniumProcessInterface
public Peridot\WebDriverManager\Process\SeleniumProcessInterface
# startInForeground( integer $port = 4444, array $args = [] )

Start Selenium in the foreground.

Start Selenium in the foreground.

Parameters

$port
$args

Returns

Peridot\WebDriverManager\Process\SeleniumProcessInterface
public Peridot\WebDriverManager\Process\SeleniumProcessInterface
# startInBackground( integer $port = 4444, array $args = [] )

Start Selenium in a background process.

Start Selenium in a background process.

Parameters

$port
$args

Returns

Peridot\WebDriverManager\Process\SeleniumProcessInterface
public
# clean( )

Remove all binaries from the install path.

Remove all binaries from the install path.

public string
# getInstallPath( )

Get the installation path of binaries.

Get the installation path of binaries.

Returns

string
public
# setInstallPath( string $path )

Set the installation path for binaries.

Set the installation path for binaries.

Parameters

$path
protected
# assertStartConditions( Peridot\WebDriverManager\Binary\SeleniumStandalone $selenium )

Assert that the selenium server can start.

Assert that the selenium server can start.

Parameters

$selenium

Throws

RuntimeException
protected
# registerBinaries( Peridot\WebDriverManager\Process\SeleniumProcessInterface $process, Peridot\WebDriverManager\Binary\SeleniumStandalone $selenium )

Register selenium binary and drivers with the process.

Register selenium binary and drivers with the process.

Parameters

$process
$selenium
Methods inherited from Peridot\WebDriverManager\Event\EventEmitterInterface
inherit()
Methods used from Peridot\WebDriverManager\Event\EventEmitterTrait
inherit()
Properties summary
protected array $binaries
#
protected Peridot\WebDriverManager\Binary\BinaryResolverInterface $resolver
#
protected Peridot\WebDriverManager\Process\SeleniumProcessInterface $process
#
protected string $installPath
# ''
WebDriver Manager API documentation generated by ApiGen